Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. WebView qml doesn't work correctly on iOS 11 - QT
Forum Updated to NodeBB v4.3 + New Features

WebView qml doesn't work correctly on iOS 11 - QT

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
7 Posts 2 Posters 1.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MSqt
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Hi! That's probably QTBUG-54668. See my attachment to the report (main.qml), it contains a workaround.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        MSqt
        wrote on last edited by
        #3

        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?

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by A Former User
          #4

          Does the workaround work for you? No, haven't tried it since 5.7.0.

          1 Reply Last reply
          0
          • M Offline
            M Offline
            MSqt
            wrote on last edited by
            #5

            With 5.7 work webview in ios ?

            ? 1 Reply Last reply
            0
            • M MSqt

              With 5.7 work webview in ios ?

              ? Offline
              ? Offline
              A Former User
              wrote on last edited by
              #6

              @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.

              1 Reply Last reply
              0
              • M Offline
                M Offline
                MSqt
                wrote on last edited by
                #7

                @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.

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved