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

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

    XMLWordPrintable

    Details

    • Commits:
      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

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

          Activity

            People

            Assignee:
            max.goldstein Maximilian Goldstein
            Reporter:
            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