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

'objectName: "win"' in Window document flagged as invalid property

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • None
    • Qt Creator 4.13.3
    • Quick / QML Support
    • None

    Description

      new project; add one line 'objectName: "win"' within the window document.
      The syntax checker flags it as an error.

      The application runs correctly and in debug mode the objectName value of "win"
      appears in the properties element where I expect it

      How to turn off this identification of possible errors since they are not errors.
      see snapshot.

      I did a complete fresh install. Then create project Abc (other/qt quick prototype)
      Received the same beginning qml file. Added one line: objectName: "abc".
      It was immediately flagged as "invalid property name (M30)".

      Not Good

      Did a "reset code model" under tools/qml/js. This resolved the problem! BUT
      I looked at another qml file and it had errors flagged for ScrollBar as an invalid property
      on a Flickable object. I did a reset code model, but that did not eliminate the error markings.
      The code ran correctly, Just the code checker gave a false report.
      The error message shows up in the application output as well.

      Not Good Again

      I found out by disabling the plugin Qml/JsEditor (and Designer) that the error flags
      were eliminated. There must be an error in QmlJsEditor (only a guess)

      Attachments

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

        Activity

          People

            fawzi Fawzi Mohamed
            lawrence.emke Lawrence Emke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes