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

QML code model does not catch undefined references

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Duplicate
    • Affects Version/s: Qt Creator 4.7.0-beta1
    • Fix Version/s: None
    • Labels:

      Description

      The default QML project has a main QML about like this:

      import QtQuick 2.10
      import QtQuick.Window 2.10
      
      Window {
          visible: true
          width: 640
          height: 480
          title: qsTr("Hello World")
      }
      

      If I change the "true" to "trueffff", it becomes an undefined reference and running the project readily tells me about it:

      qrc:/main.qml:5: ReferenceError: truefff is not defined
      

      The QML code model could know that "truefff" is an undefined reference and underline it in red.

        Attachments

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

          Activity

            People

            Assignee:
            mabenell Marco Benelli
            Reporter:
            ulherman Ulf Hermann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes