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

[REG 6.9 -> 6.10] qmllint: bogus required property warning with generalized grouped property

    XMLWordPrintable

Details

    • 2c3577264 (dev), 2d5892d53 (6.9), 9232a7e3b (6.8), 05b6c090c (tqtc/lts-6.5)

    Description

      Consider

      import QtQuick
      
      Item {
          id: root
          required property int i
      
          PropertyChanges {
              root.width: 100
          }
      }
      

      This generates a bogus warning:

      Warning: test.qml:7:19: Component is missing required property i from here [required]
      PropertyChanges{{{}

      { root.width: 100 }

      {}}}^^^^

      Attachments

        For Gerrit Dashboard: QTBUG-134887
        # Subject Branch Project Status CR V

        Activity

          People

            qtqmlteam Qt Qml Team User
            fabiankosmale Fabian Kosmale
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: