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

qmlpropertygroup: cannot mark individual properties as read-only

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 6.1.0 RC
    • 5.8.0 Alpha
    • Build tools: qdoc
    • None
    • 13
    • 58902fbd684d39191fbddf3ef5e917e709b38a68 (qt/qttools/dev)
    • Da Vinci sprint 10

    Description

      Consider such QML property group, where only index is a writable property, and the others are read-only:

      /*!
          \qmlpropertygroup Type::filter
          \qmlproperty int Type::filter.index
          \qmlproperty string Type::filter.name
          \qmlproperty list<string> Type::filter.extensions
          ...
      */
      

      Adding \readonly anywhere within the property group makes all properties read-only. Would it be possible to have a way to associate \readonly with a specific property? For example, by putting them on the same line:

      /*!
          \qmlpropertygroup Type::filter
          \qmlproperty int Type::filter.index
          \readonly \qmlproperty string Type::filter.name
          \readonly \qmlproperty list<string> Type::filter.extensions
          ...
      */
      

      Attachments

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

        Activity

          People

            treinio Topi Reiniƶ
            jpnurmi J-P Nurmi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes