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

qmllint: aliased required property shouldn't be warned as missing

    XMLWordPrintable

Details

    • 2c7ba307f7 (qt/qtdeclarative/dev) 2c7ba307f7 (qt/tqtc-qtdeclarative/dev)

    Description

      qmllint warns that a required property is not assigned even if it is exported as an alias.

      import QtQuick 2.15
      
      Item {
          property alias req: inner.req  // should be required instead
          Item {
              id: inner
              required property var req  // aliased, shouldn't be required locally
          }
      }
      
      % qmllint /tmp/a.qml
      Warning: /tmp/a.qml:5:5: Component is missing required property req from here
          Item {
          ^^^^
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            max.goldstein Maximilian Goldstein
            jirauser52013 user-c858f (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes