Details
-
Bug
-
Resolution: Incomplete
-
P3: Somewhat important
-
None
-
5.13.0 RC 3
-
None
-
vs2017 + Qt5.13.0 MSVC 64
Description
When I create QWebEngineView via Py script call in my Qt application, setUrl() will crash. But when my program starts, I do the same thing as the script, and QWebEngineView works well!
This is my script:
auto webview = new QWebEngineView(this);
webview->setUrl("http://xx.com");
webview->show();
The difference is that the calling time is different. Called when the program starts, it works well, and after the program starts, it will crash.
So I have to call it at the beginning of the program
try
{ auto webview = new QWebEngineView(this); webview->setUrl("http://xx.com"); webview->resize(0,0); delete webview }catch(...)
{ ... }
so that my program can work properly