Unsolved QtWebEngine stops displaying when undocked
-
@VirtualFloat In Linux I don't see the same problem but rather that the QDockWidget container creates a bad copy, I think the bug is caused by vtk since if I change
self.frame3d = QVTKRenderWindowInteractor(MainWindow)
toself.frame3d = QtWidgets.QWidget(MainWindow)
the problem is no longer observed. -
@eyllanesc , thanks for looking into this.
I did dig into the VTK code and it turn out that QVTKRenderWindowInteractor is derived from QGLWidget.
When I replace QVTKRenderWindowInteractor with QGLWidget the problem remains unchanged. So the problem has to be within Qt.
Updated the starting post accordingly.
-
Hi,
How did you install PySide2 ?
-
@VirtualFloat What happens if you use QWidget instead of QGLWidget?
-
@eyllanesc With QWidget instead of QGLWidget everything works as it should
@SGaist I installed pyside2 via conda-forge
version 5.13.2
qt came from conda-forge as well, version 5.12.5 -
@VirtualFloat It seems the problem is OpenGL. Try not using conda but using python + pip (I've seen several posts caused by conda bugs). In linux with the latest version provided by pip I don't see that problem
-
I'm working with a few different conda environments and I can not risk messing that up by installing qt using pip. I only have one windows PC, and I think a virtual desktop is not going to work here because opengl will be handled differently there.
-
Hi,
Use virtenv to create a classic python virtual environment and you won't have to mess with your conda installation.
-
@VirtualFloat said in QtWebEngine stops displaying when undocked:
I think a virtual desktop is not going to work here because opengl will be handled differently there.
Just as a note:
Depends on your OpenGL requirements.
Vmware workstation allows openGl 3.3
and so far only thing that didnt work for me was subsampling. -
Thanks for the help. I did the following:
- Created a virtual environement using python -m venv test
- activated it
- installed pyside2 using pip install pyside2
problem persists unchanged, but now I'm also receiving the following error message in the console:
qt.qpa.backingstore: composeAndFlush: makeCurrent() failed.
This error is given about 4 times on each un-dock action (so when it stops working).
When docking (when the browser starts working again) the error is not given.pip list
Package Version
pip 19.0.3
PySide2 5.14.2
setuptools 40.8.0
shiboken2 5.14.2