Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
Qt Creator 3.0.1
-
None
-
Windows 8 64 bit, Qt 5.2.1, Qt Creator 3.0.1
Description
This is related to QTCREATORBUG-11040.
I have a QML file using WebView that has several statements underlined. Restarting Qt Creator does NOT make them go away, unlike the above bug report.
The following is my code.
import QtQuick 2.2
import QtWebKit 3.0
Rectangle{
id: root
WebView{ // 1
id: webView
url: "http://qt-project.org"
onLinkHovered:
{ // 2 console.log("onLinkHovered"); }onLoadingChanged:
{ // 3 console.log("onLoadingChanged"); }onNavigationRequested:
{ // 4 console.log("onNavigationRequested"); } }
}
and I get the following
1. Using Qt Quick code model 1 instead of Qt Quick 2. (M324)
2. Invalid property name ‘onLinkHovered’. (M16)
3. Invalid property name ‘onLoadingChanged’. (M16)
4. Invalid property name ‘onNavigationRequested’. (M16)
1 is underlined in gray and 2-4 are underlined in red.