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 9dae5a0 commit ec31e18Copy full SHA for ec31e18
NodeGraphQt/widgets/viewer.py
@@ -2,7 +2,12 @@
2
# -*- coding: utf-8 -*-
3
import math
4
5
-from Qt import QtGui, QtCore, QtWidgets, QtOpenGL
+from Qt import QtGui, QtCore, QtWidgets
6
+
7
+try:
8
+ from PySide2.QtWidgets import QOpenGLWidget
9
+except Exception:
10
+ from PyQt5.QtWidgets import QOpenGLWidget
11
12
from .dialogs import BaseDialog, FileDialog
13
from .scene import NodeScene
@@ -1150,6 +1155,4 @@ def clear_key_state(self):
1150
1155
self.ALT_state = False
1151
1156
1152
1157
def use_OpenGL(self):
1153
- format = QtOpenGL.QGLFormat(QtOpenGL.QGL.SampleBuffers)
1154
- format.setSamples(4)
- self.setViewport(QtOpenGL.QGLWidget(format))
1158
+ self.setViewport(QOpenGLWidget())
0 commit comments