Only set PseudoLayout with Qt 5.11
This commit is contained in:
parent
7e31897dcc
commit
456fdc55cc
@ -54,6 +54,10 @@ class WebEngineView(QWebEngineView):
|
|||||||
parent=self)
|
parent=self)
|
||||||
self.setPage(page)
|
self.setPage(page)
|
||||||
|
|
||||||
|
if qtutils.version_check('5.11', compiled=False):
|
||||||
|
# Set a PseudoLayout as a WORKAROUND for
|
||||||
|
# https://bugreports.qt.io/browse/QTBUG-68224
|
||||||
|
# and other related issues.
|
||||||
sip.delete(self.layout())
|
sip.delete(self.layout())
|
||||||
self._layout = miscwidgets.PseudoLayout(self)
|
self._layout = miscwidgets.PseudoLayout(self)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user