Skip to content

Commit

Permalink
Fixed crash when using Qt6 with MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
githubuser0xFFFF committed Aug 12, 2022
1 parent 0a564dc commit a90eff1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/full_features/main.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
#include <QApplication>
#include <QQuickWindow>

#include "mainwindow.h"

int main(int argc, char *argv[])
{
QApplication a(argc, argv);
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
QQuickWindow::setGraphicsApi(QSGRendererInterface::OpenGL);
#endif
CMainWindow w;
w.show();
return a.exec();
Expand Down

0 comments on commit a90eff1

Please sign in to comment.