Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-85069

Emit a warning when reading non-existing properties

    XMLWordPrintable

Details

    Description

      In QML it's perfectly allowed to read from a non-existing property, and that will yield "undefined", without emitting any warnings.

      Could it be possible to have pragmas or similar flags that instead make the engine raise a warning?

      Usually it's a silly typo in the code, like anchors.top: otherThing.borrom that otherwise goes completely undetected.

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            peppe Giuseppe D'Angelo
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes