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

qmlls, qmllint, and qmlsc don't recognize required properties set using "on" syntax

XMLWordPrintable

    • ee77c14ec (6.10), 46925f589 (dev), 63f3c4eab (tqtc/lts-6.8)

      Code

      import QtQuick
      import Qt.labs.synchronizer
      
      Window {
          id: window
          width: 640
          height: 480
          visible: true
      
          property int refValue: 0
      
          component TestObject: QtObject {
              required property int value
          }
      
          TestObject {
              value: 0 // OK: Required property is set.
          }
      
          TestObject {
              // "Missing required property" warning is expected here,
              // because this produces a runtime error.
          }
      
          TestObject {
              // "Missing required property" warning is NOT expected here,
              // because this does NOT produce a runtime error.
              Synchronizer on value {
                  property alias source: window.refValue
              }
          }
      }
      

       

      Outcomes

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

            fabiankosmale Fabian Kosmale
            skoh-qt Sze Howe Koh
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes