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. Qt5.8 QML WebView on iOS never fires signals

Qt5.8 QML WebView on iOS never fires signals

Scheduled Pinned Locked Moved Solved Mobile and Embedded
qmlwebviewiosbug
4 Posts 3 Posters 1.6k Views
  • 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.
  • E Offline
    E Offline
    eLim
    wrote on last edited by eLim
    #1

    Hey,
    As part of an app I'm building for work, I'm using the QML WebView. Currently compiling with Qt 5.8.

    Every time the URL is changed in the WebView I monitor it and react accordingly. On Android, MacOS and Windows everything works fine. But on iOS, onLoadingChanged and onUrlChanged are never fired at all, even though the pages are clearly changing. I've called QtWebView::initialize() in my main function, so that shouldn't be the cause.

    Is this a known bug? And if so, is there a workaround for it?

    jsulmJ 1 Reply Last reply
    0
    • jsulmJ jsulm

      @eLim To check whether it is a known bug you should check https://bugreports.qt.io/secure/Dashboard.jspa
      How do you connect to the signals? Can you show relevant code?

      E Offline
      E Offline
      eLim
      wrote on last edited by
      #3

      @jsulm We determined that the issue was javascript-related. The page was using javascript to perform the redirect, and iOS didn't like that.

      Thanks for the help, though!

      1 Reply Last reply
      0
      • E eLim

        Hey,
        As part of an app I'm building for work, I'm using the QML WebView. Currently compiling with Qt 5.8.

        Every time the URL is changed in the WebView I monitor it and react accordingly. On Android, MacOS and Windows everything works fine. But on iOS, onLoadingChanged and onUrlChanged are never fired at all, even though the pages are clearly changing. I've called QtWebView::initialize() in my main function, so that shouldn't be the cause.

        Is this a known bug? And if so, is there a workaround for it?

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #2

        @eLim To check whether it is a known bug you should check https://bugreports.qt.io/secure/Dashboard.jspa
        How do you connect to the signals? Can you show relevant code?

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        E 1 Reply Last reply
        0
        • jsulmJ jsulm

          @eLim To check whether it is a known bug you should check https://bugreports.qt.io/secure/Dashboard.jspa
          How do you connect to the signals? Can you show relevant code?

          E Offline
          E Offline
          eLim
          wrote on last edited by
          #3

          @jsulm We determined that the issue was javascript-related. The page was using javascript to perform the redirect, and iOS didn't like that.

          Thanks for the help, though!

          1 Reply Last reply
          0
          • S Offline
            S Offline
            ShubhamB
            wrote on last edited by
            #4

            Hi @eLim

            I am also facing the same issue in my Qt iOS application. Could you please help me to understand what part of javascript, iOS is restricting as I am using Angular to develop the web application.
            Could you please provide more information what you did to resolve this issue.

            Thanks in advance.

            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