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

Binding should warn if target's property doesn't exist,or there is no WRITE method in the property.

    XMLWordPrintable

Details

    • 61ce37de40711ef2d4a6b4989d8183e1711fc47d

    Description

      Say puppy is a C++ object which has a property called name. If puppy is mispelled, QML will output: ReferenceError: puppu is not defined.

      Binding { target:puppu; property:"name"; value:input.text }
      

      But if name is mispelled, QML never outputs any warning or error.

      Binding { target:puppy; property:"namw"; value:input.text }
      

      There is no warning too, if WRITE method is not defined in the Q_PROPERTY declaration of name.

      My suggestion is to output warnings to help debugging.

      Attachments

        Activity

          People

            tokoe Tobias Koenig
            fxam fxam
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: