Unsolved WebView qml doesn't work correctly on iOS 11 - QT
-
I've a problem, i need to open url inside app, and i used a WebView, but doesn't work correctly.
imported this:
import QtWebView 1.0
my code:
Rectangle{ width: Screen.width height: Screen.height color: "Orange" anchors.fill: parent z:9999999 WebView { id: webviewer anchors.fill: parent url: "http://www.google.com" onLoadProgressChanged: { console.log(webviewer.loadProgress) } } }
and in the .pro file i've put:
QT += webview
And my main.cpp
QtWebView::initialize();
my console.log is printing correctly the load status, but on the screen i don't see nothing. Why ?
On Android devices works, but not on ios 11.I use qt 5.9.2
Thanks for helping.```
//your code here -
Hi! That's probably QTBUG-54668. See my attachment to the report (
main.qml
), it contains a workaround. -
Have you tried a QT 5.10, maybe on 5.10 this bug it's fixed ? Or you trip me ad another version to get works webview?
-
Does the workaround work for you? No, haven't tried it since 5.7.0.
-
With 5.7 work webview in ios ?
-
@MSqt said in WebView qml doesn't work correctly on iOS 11 - QT:
With 5.7 work webview in ios ?
I don't know. I encountered the bug on desktop Linux. Have you read the bug report I referred to? It contains a workaround. Single line and you're good.
-
@Wieland said in WebView qml doesn't work correctly on iOS 11 - QT:
I don't know. I encountered the bug on desktop Linux. Have you read the bug report I referred to? It contains a workaround. Single line and you're good.
Yes, I read the report but don't work for me on iOS with Qt 5.9.2..... Work only on android.