Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-11666

Statements Underlined When Using WebView in QML

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • Qt Creator 3.2.0
    • Qt Creator 3.0.1
    • Quick / QML Support
    • None
    • Windows 8 64 bit, Qt 5.2.1, Qt Creator 3.0.1

      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.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            fawzi Fawzi Mohamed
            steveg SteveG
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes