Skip to content

Commit

Permalink
import QtWebEngineWidgets from corresponding module
Browse files Browse the repository at this point in the history
  • Loading branch information
chrizzFTD committed Jan 5, 2024
1 parent b15cf81 commit a50ace1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion grill/views/description.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,11 @@ def __init__(self, *args, **kwargs):
layout = QtWidgets.QVBoxLayout()
# After some experiments, QWebEngineView brings nicer UX and speed than QGraphicsSvgItem and QSvgWidget
if not _SVG_AS_PIXMAP:
from PySide6 import QtWebEngineWidgets
if QtWidgets.__package__ == "PySide6":
# PySide-6.6.0 and 6.6.1 freeze when QtWebEngineWidgets is imported on ._qt, so inlining here until fixed
from PySide6 import QtWebEngineWidgets
else:
from PySide2 import QtWebEngineWidgets
self._graph_view = QtWebEngineWidgets.QWebEngineView(parent=self)
self.urlChanged = self._graph_view.urlChanged
else:
Expand Down

0 comments on commit a50ace1

Please sign in to comment.