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