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?
#include <QApplication>
#include <QFont>
#include <QPushButton>
#include "ui_ABase.h"
int main(int argc, char* argv[])
{
Ui_ABase base;
base.show();
return app.exec();
}
#include <QApplication>
#include <QFont>
#include <QPushButton>
#include "ui_ABase.h"
int main(int argc, char* argv[])
{
QApplication app(argc, argv);
Ui_ABase base;
base.show();
return app.exec();
}
To copy to clipboard, switch view to plain text mode
Bookmarks