Answer the question
In order to leave comments, you need to log in
What is in an inherited constructor call?
I have a constructor call
MyWindow :: MyWindow(QWidget *parent) : QDialog(parent), ui(new UI:MyWindow)
{//constructor body}
Question: What is ui(new UI:MyWindow)?
ui is an object of type MyWindow, which is declared in the MyWindow class itself. (What surprised me)
UI is a namespace.
Answer the question
In order to leave comments, you need to log in
MyWindow
- this is your controller, which you wrote with your own hands. It asks you to use a code-generated view UI::MyWindow
(another class!) that Qt wrote for you following the directions from QtDesigner's `.ui` file. How exactly to use? UI::MyWindow
stored in MyWindow
in the field ui
.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question