Files
qt-creator/share/qtcreator/templates/wizards/autotest/main.cpp

22 lines
502 B
C++
Raw Normal View History

%{Cpp:LicenseTemplate}\
@if "%{RequireGUI}" == "true"
%{JS: QtSupport.qtIncludes([ 'QtGui/QApplication' ],
[ 'QtWidgets/QApplication' ]) }\
2014-10-07 12:30:54 +02:00
@else
%{JS: QtSupport.qtIncludes([ 'QtCore/QCoreApplication' ],
[ 'QtCore/QCoreApplication' ]) }\
2014-10-07 12:30:54 +02:00
@endif
// add necessary includes here
int main(int argc, char *argv[])
{
@if "%{RequireGUI}" == "true"
2014-10-07 12:30:54 +02:00
QApplication a(argc, argv);
@else
QCoreApplication a(argc, argv);
@endif
return a.exec();
}