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. QtWebView signal for URL changes
QtWS25 Last Chance

QtWebView signal for URL changes

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
qtwebviewqml
2 Posts 2 Posters 1.4k 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.
  • metaDomM Offline
    metaDomM Offline
    metaDom
    wrote on last edited by
    #1

    Hey guys,

    I'm looking for a way to detect if the URL was changed in QML.

    The documentation doesn't seem to contain too much info:
    http://doc.qt.io/qt-5/qml-qtwebview-webview.html

    Current code is quite simple:

    import QtQuick 2.2
    import QtWebView 1.1

    Rectangle {
    width: 2000
    height: 2000
    WebView {
    objectName: "webView"
    anchors.fill: parent
    id: webView
    url: "http://www.qt.io"
    }
    }

    Thanks in advance!

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Since url is a property you have the onUrlChanged signal to react to that.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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