Skip to content

Commit d37a2eb

Browse files
committed
Fix QGLWidget import for PyQt6
Signed-off-by: falkTX <falktx@falktx.com>
1 parent 658f4de commit d37a2eb

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

source/frontend/carla_host.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,10 @@
110110
# Try Import OpenGL
111111

112112
try:
113-
from PyQt5.QtOpenGL import QGLWidget
113+
if qt_config == 5:
114+
from PyQt5.QtOpenGL import QGLWidget
115+
elif qt_config == 6:
116+
from PyQt6.QtOpenGL import QGLWidget
114117
hasGL = True
115118
except:
116119
hasGL = False

0 commit comments

Comments
 (0)