Hi. I've got a question. I have created my main window using designer and translated it into Qt code. So after translations I received a ui_Maker.h file:
http://www.insidetennis.yoyo.pl/ntd.txt
And how can I display this main window (called MainWindow) ?
I tried this in main.cpp:
#include "ui_Maker.h"
int main(int argc, char *argv[])
{
MainWindow->show();
return app.exec();
}
#include "ui_Maker.h"
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
MainWindow->show();
return app.exec();
}
To copy to clipboard, switch view to plain text mode
but there appear error that MainWindow is undeclared. What did I do wrong? And how can I correct it? Btw. my test.pro file:
CONFIG += qt
HEADERS += ui_Maker.h
SOURCES += main.cpp
CONFIG += qt
HEADERS += ui_Maker.h
SOURCES += main.cpp
To copy to clipboard, switch view to plain text mode
Regards
Bookmarks