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

QML doesn't support readonly list properties

    XMLWordPrintable

Details

    • 51696d5e8dbd17fe2bfdfc669bbf22e0e50af6c6 (qt/qtdeclarative/5.12)

    Description

      import QtQuick 2.5
      
      QtObject {
          readonly property list<QtObject> listfoo: [QtObject {}]
      }
      
      

      Results in:

      a.qml:4 Unexpected token `<'
      a.qml:4 Expected token `:'
      

      Removing the readonly keyword makes it work.

      Attachments

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

        Activity

          People

            ulherman Ulf Hermann
            iamsergio Sergio Martins
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes