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

QML code model does not catch undefined references

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 4.7.0-beta1

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes