79 self.__verticalLayout = QVBoxLayout(self) |
79 self.__verticalLayout = QVBoxLayout(self) |
80 self.__verticalLayout.setObjectName("verticalLayout") |
80 self.__verticalLayout.setObjectName("verticalLayout") |
81 self.__verticalLayout.setContentsMargins(0, 0, 0, 0) |
81 self.__verticalLayout.setContentsMargins(0, 0, 0, 0) |
82 |
82 |
83 try: |
83 try: |
|
84 # TODO: remove this workaround once rc0 issue is fixed |
|
85 # Workaround for a bug in Qt 6.2.0 rc0 on non-Linux |
|
86 import sys |
|
87 if not sys.platform.startswith("linux"): |
|
88 raise ImportError |
|
89 |
84 from PyQt6.QtWebEngineCore import QWebEngineSettings |
90 from PyQt6.QtWebEngineCore import QWebEngineSettings |
85 from PyQt6.QtWebEngineWidgets import QWebEngineView |
91 from PyQt6.QtWebEngineWidgets import QWebEngineView |
86 self.__contents = QWebEngineView(self) |
92 self.__contents = QWebEngineView(self) |
87 self.__contents.page().linkHovered.connect(self.__showLink) |
93 self.__contents.page().linkHovered.connect(self.__showLink) |
88 self.__contents.settings().setAttribute( |
94 self.__contents.settings().setAttribute( |