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"
I checked out the documentation here. [qt-project.org]
It still lists the two properties onLoadStarted and onLoadFinished.
What am I missing here?
P.S.: I am using import QtWebKit 3.0 here. Is that a concern?
↧