eric7/UI/CodeDocumentationViewer.py

branch
eric7
changeset 8617
3ea0b67205b6
parent 8553
10d31e5ce9e5
child 8631
b2c4c2f3fda7
diff -r 651cc4e319fb -r 3ea0b67205b6 eric7/UI/CodeDocumentationViewer.py
--- a/eric7/UI/CodeDocumentationViewer.py	Sun Sep 19 16:13:41 2021 +0200
+++ b/eric7/UI/CodeDocumentationViewer.py	Sun Sep 19 16:26:29 2021 +0200
@@ -81,6 +81,12 @@
         self.__verticalLayout.setContentsMargins(0, 0, 0, 0)
         
         try:
+            # TODO: remove this workaround once rc0 issue is fixed
+            # Workaround for a bug in Qt 6.2.0 rc0 on non-Linux
+            import sys
+            if not sys.platform.startswith("linux"):
+                raise ImportError
+            
             from PyQt6.QtWebEngineCore import QWebEngineSettings
             from PyQt6.QtWebEngineWidgets import QWebEngineView
             self.__contents = QWebEngineView(self)

eric ide

mercurial