Qt 5.15 => 6.10: QML with WebView in the widget app shows empty field instead of web page
-
I'm developing a mobile app for Android using widgets. One of my app's forms needs to display a web page. I'm using QML with WebView for this (QQuickWidget on the form widget, which displays a QML page with a single QtWebView object). When compiling the project with Qt 5.15, everything works fine, and the web page displays correctly. However, when compiling the project with Qt 6.10, I see an empty field instead of a page. However, according the console output from QtWebView, the page has loaded.
What could be the problem?
In the documentation at doc.qt.io/qt-6/qtwebengine-platform-notes.html, I found information about disabling the sandbox with the QTWEBENGINE_DISABLE_SANDBOX flag, but this didn't help.
-
II wanted to post the source code for a test app here, so one could compile it and see what it looks like. But all my attempts end with a message that the post was recognized as spam, and I can't attach the source code here.
So I posted all source code at the StackOverflow https://stackoverflow.com/questions/79801790/qt-5-15-6-10-qml-with-webview-in-the-widget-app-shows-empty-field-instead-of