Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. [Solved] QML WebView Error: Cannot assign to non-existent property "onLoadFinished"
Forum Update on Monday, May 27th 2025

[Solved] QML WebView Error: Cannot assign to non-existent property "onLoadFinished"

Scheduled Pinned Locked Moved Qt WebKit
2 Posts 1 Posters 2.2k 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.
  • G Offline
    G Offline
    Ghost
    wrote on 29 Jul 2013, 11:13 last edited by
    #1

    In order to try out the latest Qt Quick Controls that came with Qt 5.1, I started making a barebones browser. Here is the code snippet that shows WebView in action:
    @
    import QtWebKit 3.0
    import QtQuick 2.0
    import QtQuick.Controls 1.0
    import QtQuick.Layouts 1.0

    WebView {
    id: browser
    Layout.fillHeight: true
    Layout.fillWidth: true
    url: ""

    onLoadStarted: { loadingStatus.text = "Loading url.text" }
    onLoadFinished: { loadingStatus.text = "Loading done." }
    }
    @

    Executing this gives me an error:
    @ Cannot assign to non-existent property "onLoadFinished" @

    What am I missing here?
    P.S.: I am using import QtWebKit 3.0 here. Is that a concern?

    Bhoot

    1 Reply Last reply
    0
    • G Offline
      G Offline
      Ghost
      wrote on 2 Aug 2013, 14:47 last edited by
      #2

      Ok. Later on, I discovered that QtWebKit 3.0's WebView, indeed, doesnt have property "onLoadFinished". It, along with onLoadStarted, has been replaced by onLoadingChanged property.
      However, Qt Creator coughs a supposed syntax error when using that, as apparent by "this post of mine.":https://qt-project.org/forums/viewthread/30729/
      Hence, this whole confusion arose.

      Anyway, I am marking this thread as solved.

      Bhoot

      1 Reply Last reply
      0

      1/2

      29 Jul 2013, 11:13

      • 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