diff --git a/src/calibre/gui2/__init__.py b/src/calibre/gui2/__init__.py index 31d22c50c4..875c64ec0a 100644 --- a/src/calibre/gui2/__init__.py +++ b/src/calibre/gui2/__init__.py @@ -1071,7 +1071,7 @@ def setup_to_run_webengine(): # this import is needed to have Qt call qt_registerDefaultPlatformBackingStoreOpenGLSupport from qt.core import QOpenGLWidget del QOpenGLWidget - from PyQt6.QtQuick import QQuickWindow, QSGRendererInterface + from qt.core import QQuickWindow, QSGRendererInterface QQuickWindow.setGraphicsApi(QSGRendererInterface.GraphicsApi.OpenGL) except ImportError: # for people running from source