int main(int argc, char *argv[]) { QApplication a(argc, argv); MainWidget w; w.resize(1000,600); w.show(); return a.exec(); }
QT_CHARTS_USE_NAMESPACE int main(int argc, char *argv[]) { QApplication a(argc, argv); MainWidget w; w.resize(720, 480); w.show(); return a.exec(); }
int main(int argc, char *argv[]) { QApplication a(argc, argv); a.setApplicationName("cube"); a.setApplicationVersion("0.1"); #ifndef QT_NO_OPENGL MainWidget w; w.resize(640, 480); w.show(); #else QLabel * notifyLabel = new QLabel("OpenGL Support required"); notifyLabel->show(); #endif return a.exec(); }
int main(int argc, char *argv[]) { QApplication a(argc, argv); MainWidget w; w.resize(1100,750); // system ("pwd"); QPixmap pixmap("splash_screen.jpg"); pixmap.scaled(500,425); QSplashScreen splash(pixmap); splash.show(); QString msg = "Loading..."; splash.showMessage(msg, Qt::AlignLeft, Qt::white); // QTest::qWait (4000); a.processEvents(); splash.finish(&w); w.show(); return a.exec(); }