Files
qt-creator/share/qtcreator/templates/wizards/projects/qtwidgetsapplication/main.cpp
Eike Ziller 241efa353d Move Qt Widgets Application wizard to JSON
Adding support for CMake as well as QMake

Task-number: QTCREATORBUG-17308
Change-Id: I615b58921918ec87f935e0f11d3dd23ec20f0ac1
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2019-03-27 09:44:17 +00:00

13 lines
258 B
C++

%{Cpp:LicenseTemplate}\
#include "%{HdrFileName}"
%{JS: QtSupport.qtIncludes([ 'QtGui/QApplication' ], [ 'QtWidgets/QApplication' ]) }\
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
%{Class} w;
w.show();
return a.exec();
}