From 31b1746d88100bb2c61069955cde586342e22086 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 10 Aug 2022 22:20:49 +0530 Subject: [PATCH] Use qt.core --- src/calibre/gui2/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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