The Designer
Designer Powerful drag and drop design:
Setup Normal Chemeketa Project QT += widgets Add New Qt Designer Form Class… #include "mydialog.h" #include <QApplication> int main(int argc, char *argv[]) { QApplication a(argc, argv); MyDialog w; w.show(); return a.exec(); }
Setup Normal GUI startup code for main #include "dialog.h" #include <QApplication> int main(int argc, char *argv[]) { QApplication a(argc, argv); Dialog w; w.show(); return a.exec(); }
Editing Edit GUI with .ui file Edit widgets through properties Set variable name with objectName:
UI Ui member in your class contains generated code Do any extra work at end of constructor