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
Forum Updated to NodeBB v4.3 + New Features

QtWebView signal for URL changes

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
qtwebviewqml
2 Posts 2 Posters 1.5k 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
    metaDom
    wrote on 9 Nov 2015, 10:39 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
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 9 Nov 2015, 23:35 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

      1/2

      9 Nov 2015, 10:39

      • Login

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