As expected, when I build i get an error message that says that show method doesn't exist. In fact i didn't create it.

I created ui_ABase.h with qmake, giving as input the .ui file generated with Qt Designer.

How I can display the whole mainwindow created with Qt Designer?

Qt Code:
  1. #include <QApplication>
  2. #include <QFont>
  3. #include <QPushButton>
  4. #include "ui_ABase.h"
  5.  
  6. int main(int argc, char* argv[])
  7. {
  8. QApplication app(argc, argv);
  9.  
  10. Ui_ABase base;
  11.  
  12. base.show();
  13.  
  14. return app.exec();
  15. }
To copy to clipboard, switch view to plain text mode