A general approach for Qt4 is to design your user interfaces in Qt Designer and then either inherit or incorporate them in a regular C++ class derived from one of QWidget descendants and use the designed UI by calling setupUi().
class MyMainWindow
: public QMainWindow,
private Ui
::MyMainWindow {//...
};
class MyMainWindow : public QMainWindow, private Ui::MyMainWindow {
//...
};
To copy to clipboard, switch view to plain text mode
or
//...
private:
Ui::MyMainWindow ui;
//...
};
class MyMainWindow : public QMainWindow {
//...
private:
Ui::MyMainWindow ui;
//...
};
To copy to clipboard, switch view to plain text mode
Bookmarks