'QWebEngineView not showing anything on Windows 10
I've created a Python app that works perfectly on Mac but I need to be able to run it on Windows.
So far, I'm stuck with my QWebEngineView not displaying anything. I've created a small piece of code to test but so far, it only shows a blank window on Win10 while it runs perfectly on MacOS:
from PySide2.QtCore import QUrl
from PySide2.QtWebEngineWidgets import QWebEngineView
from PySide2.QtWidgets import QApplication
APP = QApplication()
web_widget = QWebEngineView()
my_url = QUrl("http://www.google.com")
web_widget.load(my_url)
web_widget.show()
APP.exec_()
It almost looks like Win10 is unable to load/display this webpage, like it's missing some king of component to display this webview... What am I doing wrong?
Solution 1:[1]
I ran into the exact same issue.
After quite a while exploring different solutions, the cause was in fact that I was trying to launch my app on a Network Drive.
See this: https://bugreports.qt.io/browse/QTBUG-84632
It worked perfectly on local drive, or by setting the environment variable:
SET QTWEBENGINE_DISABLE_SANDBOX=1
It has been a while since the question was asked. I'm leaving this potential solution here in case of need.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
