eric7/UI/CodeDocumentationViewer.py

branch
eric7
changeset 8617
3ea0b67205b6
parent 8553
10d31e5ce9e5
child 8631
b2c4c2f3fda7
equal deleted inserted replaced
8616:651cc4e319fb 8617:3ea0b67205b6
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(

eric ide

mercurial