main.cpp 296 Bytes
Newer Older
Christian Stenger's avatar
Christian Stenger committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
@if "%RequireGUI%" == "true"
#include <QApplication>
@else
#include <QCoreApplication>
@endif

// add necessary includes here

int main(int argc, char *argv[])
{
@if "%RequireGUI%" == "true"
    QApplication a(argc, argv);
@else
    QCoreApplication a(argc, argv);
@endif

    return a.exec();
}