We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec31e18 commit 5a1c1e7Copy full SHA for 5a1c1e7
NodeGraphQt/widgets/viewer.py
@@ -2,11 +2,13 @@
2
# -*- coding: utf-8 -*-
3
import math
4
5
+import Qt
6
from Qt import QtGui, QtCore, QtWidgets
7
-try:
8
+# use QOpenGLWidget instead of the deprecated QGLWdiegt to avoid probelms with Wayland
9
+if Qt.IsPySide2:
10
from PySide2.QtWidgets import QOpenGLWidget
-except Exception:
11
+elif Qt.IsPyQt5:
12
from PyQt5.QtWidgets import QOpenGLWidget
13
14
from .dialogs import BaseDialog, FileDialog
0 commit comments