mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Allow using QtWebEngine in the main calibre application as well
This commit is contained in:
parent
53a44ce034
commit
d73fef560e
@ -34,6 +34,7 @@ dlls = [
|
|||||||
'Widgets',
|
'Widgets',
|
||||||
# 'Multimedia',
|
# 'Multimedia',
|
||||||
'OpenGL',
|
'OpenGL',
|
||||||
|
'OpenGLWidgets',
|
||||||
'Quick',
|
'Quick',
|
||||||
'QuickWidgets',
|
'QuickWidgets',
|
||||||
'Qml',
|
'Qml',
|
||||||
@ -88,6 +89,8 @@ PYQT_MODULES = (
|
|||||||
'QtSensors',
|
'QtSensors',
|
||||||
'QtSvg',
|
'QtSvg',
|
||||||
'QtWidgets',
|
'QtWidgets',
|
||||||
|
'QtOpenGL',
|
||||||
|
'QtOpenGLWidgets',
|
||||||
'QtWebEngine',
|
'QtWebEngine',
|
||||||
'QtWebEngineCore',
|
'QtWebEngineCore',
|
||||||
'QtWebEngineWidgets',
|
'QtWebEngineWidgets',
|
||||||
|
@ -1077,6 +1077,9 @@ class Application(QApplication):
|
|||||||
# Allow import of webengine after construction of QApplication on new
|
# Allow import of webengine after construction of QApplication on new
|
||||||
# enough PyQt
|
# enough PyQt
|
||||||
QApplication.setAttribute(Qt.ApplicationAttribute.AA_ShareOpenGLContexts)
|
QApplication.setAttribute(Qt.ApplicationAttribute.AA_ShareOpenGLContexts)
|
||||||
|
# this import is needed to have Qt call qt_registerDefaultPlatformBackingStoreOpenGLSupport
|
||||||
|
from qt.core import QOpenGLWidget
|
||||||
|
del QOpenGLWidget
|
||||||
if iswindows:
|
if iswindows:
|
||||||
self.windows_app_uid = None
|
self.windows_app_uid = None
|
||||||
if windows_app_uid:
|
if windows_app_uid:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user