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

[REG: 6.8.2 -> 6.9] False warning about missing required property when using inline component

XMLWordPrintable

    • 71967f318 (dev), 220cab5f7 (6.9), 024ea8d51 (tqtc/lts-6.8)

      Consider the following QML code

       

      import QtQuick
      
      Item {
          Item {
              component Foo: Item {
                  required property var bla
              }
          }
      }

      qmllint shows a warning "Warning: shortcut.qml:4:5: Component is missing required property bla from Item [required]"

      There is no runtime problem though, since I'm not actually creating a Foo

       

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

            sami.shalayel Sami Shalayel
            nicolasfella Nicolas Fella
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes