I have this weird problem on Windows 10 with PyQt5 QWebEngineView.
When I delete self.webView = QtWebEngineWidgets.QWebEngineView(self.groupBox_4) from window_ui.py which is generated with pyuic5 app starts fine. When I add it back, whole window is just white.
However, my Windows 10 in VirtualBox works just fine. Also works in Ubuntu, but I had to install pyqt and pyqtwebengine from apt repositories because of import errors.
Also, when hovering on invisible textboxes cursor will change, and I can click on invisible buttons and they will work.
QT Versions are always:
pyqtwebengine 5.15.6
pyqt5 5.15.4
A quick summary of the environments tested:
| Device | Python Version | EXE/PY file | Result | Comments |
|---|---|---|---|---|
| Ubuntu 22.04 LTS Physical | 3.10.4 | PY file | Works | - |
| Ubuntu 22.04 LTS Physical | 3.9.5 | EXE with Wine | Works | - |
| VirtualBox Windows 10 under Ubuntu 22.04 | 3.9.5 | PY file | Works | Compiled exe with pyinstaller on this machine |
| VirtualBox Windows 10 under Ubuntu 22.04 | 3.9.5 | EXE file | Works | - |
| Remote VDS Windows 10 | 3.9.5 | EXE file | Does not work | - |
| Remote VDS Windows 10 | 3.10.5 | PY file | Does not work | not initializing QWebEngineView solves the issue |
| Physical Windows 10 #1 | 3.9.5 | EXE file | Does not work | - |
| Physical Windows 10 #2 | 3.9.5 | EXE file | Does not work | - |
There are no errors or any logs. Any ideas to further troubleshoot this?
p.s. I can see the qwebengineview does load properly, because I'm getting logs from javascript on my html page. I've also tested just initializing the window and objects, no connects, no functions except basics like showing the window etc. and there's the same problem.