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

qmllint doesn't complain about setting read only properties

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • 6.8
    • 6.8.0 FF
    • QML: Tooling
    • None
    • All

    Description

      qmllint doesn't complain about this code

      import QtQuick
      Item {
          Item {
              horizontalCenter: parent.horizontalCenter
          }
      }
      

       

      On the other hand qml does complain when running it

      $ qml main.qml 
      QQmlApplicationEngine failed to load component
      file:///Users/user/test/main.qml:10:27: Invalid property assignment: "horizontalCenter" is a read-only property
      

       

      Is it possible that qmllint also complains about it?

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            albert.astals.cid.avid Albert Astals Cid
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change