int main(int argc, char **argv) { QApplication app(argc, argv); auto format = QSurfaceFormat::defaultFormat(); format.setVersion(3, 3); format.setProfile(QSurfaceFormat::CoreProfile); format.setOption(QSurfaceFormat::DeprecatedFunctions, false); QSurfaceFormat::setDefaultFormat(format); MainGui gui; gui.resize(1000, 600); gui.show(); return app.exec(); }