summaryrefslogtreecommitdiffstats
path: root/languages/cpp/app_templates/qmakeapp/main.cpp
blob: bd26f19ac7c11c007b36866c686c1981117c24ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
%{CPP_TEMPLATE}

#include <qapplication.h>
#include "%{APPNAMELC}.h"

int main( int argc, char ** argv ) {
    QApplication a( argc, argv );
    %{APPNAME} * mw = new %{APPNAME}();
    mw->setCaption( "%{APPNAME}" );
    mw->show();
    a.connect( &a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()) );
    return a.exec();
}