You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdevelop/languages/cpp/app_templates/cmakeqt3app/main.cpp

14 lines
323 B

%{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();
}