int main(int argc, char *argv[]) { QApplication a(argc, argv); ClockWindow w; w.show(); return a.exec(); }
int main(int argc, char **argv) { QApplication app(argc, argv); ClockWindow window; app.setApplicationName("DeskClock"); app.setApplicationVersion("1.0"); app.setOrganizationDomain("http://seken.co.uk"); app.setOrganizationName("Markit"); if (QApplication::desktop()->width() <= 1024) { window.showFullScreen(); } else { window.resize(1024, 600); window.show(); } return app.exec(); }