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',
|
||||
# 'Multimedia',
|
||||
'OpenGL',
|
||||
'OpenGLWidgets',
|
||||
'Quick',
|
||||
'QuickWidgets',
|
||||
'Qml',
|
||||
@ -88,6 +89,8 @@ PYQT_MODULES = (
|
||||
'QtSensors',
|
||||
'QtSvg',
|
||||
'QtWidgets',
|
||||
'QtOpenGL',
|
||||
'QtOpenGLWidgets',
|
||||
'QtWebEngine',
|
||||
'QtWebEngineCore',
|
||||
'QtWebEngineWidgets',
|
||||
|
@ -1077,6 +1077,9 @@ class Application(QApplication):
|
||||
# Allow import of webengine after construction of QApplication on new
|
||||
# enough PyQt
|
||||
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:
|
||||
self.windows_app_uid = None
|
||||
if windows_app_uid:
|
||||
|
Loading…
x
Reference in New Issue
Block a user