Files
qt-creator/share/qtcreator/templates/qt4project/main.cpp
Tobias Hunger f2295f889e Set size of widgets for devices to match default resolution
* When creating a new project for some device: Set UI element size
   to the device resolution.
2010-02-18 15:36:16 +01:00

15 lines
250 B
C++

#include <%QAPP_INCLUDE%>
#include "%INCLUDE%"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
%CLASS% w;
#if defined(Q_WS_S60) || defined(Q_WS_MAEMO_5)
w.showMaximized();
#else
w.show();
#endif
return a.exec();
}