[nostalgia] Make portable between Qt5 and Qt6

This commit is contained in:
2021-03-30 21:25:01 -05:00
parent 8d62aca8a7
commit 2b469da8c3
6 changed files with 10 additions and 8 deletions
+2
View File
@@ -27,7 +27,9 @@ int main(int argc, char **args) {
qdark::load(&app);
}
// force QtQuick to use OpenGL (https://doc.qt.io/qt-6/quick-changes-qt6.html#changes-to-qquickwidget)
#if QT_VERSION >= 0x060000
QQuickWindow::setGraphicsApi(QSGRendererInterface::OpenGLRhi);
#endif
// open window
try {
MainWindow w(argProfilePath);