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

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.8, 6.9, 6.10.0 Beta3
    • 6.9
    • QML: Tooling
    • None
    • 71967f318 (dev)

    Description

      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

       

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There is 1 open Gerrit change