Yes on both.
Here's what my mainwindowbuilder.qrc file looks like
<!DOCTYPE RCC><RCC version="1.0">
<qresource prefix="/forms">
<file>mainwindowgui.ui</file>
</qresource>
</RCC>
<!DOCTYPE RCC><RCC version="1.0">
<qresource prefix="/forms">
<file>mainwindowgui.ui</file>
</qresource>
</RCC>
To copy to clipboard, switch view to plain text mode
and I might as well reveal my main.cpp:
int main(int argc, char *argv[])
{
Q_INIT_RESOURCE(mainwindowbuilder);
MainForm winMain;
winMain.show();
return app.exec();
}
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
Q_INIT_RESOURCE(mainwindowbuilder);
MainForm winMain;
winMain.show();
return app.exec();
}
To copy to clipboard, switch view to plain text mode
I've verified the file being loaded by simply adding a
formwidget->show()
in my class file, and the form does work. However, not actually being associated with the class yet, it doesn't have any use.
Bookmarks