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

Feature Request: Option to have required and readonly QML property

    XMLWordPrintable

    Details

      Description

      When you instantiate an object in which the readonly property is required to be set, therein it will be set and subsequently, it cannot be changed.
      Whereas the "required-but-not-readonly" property must be set in the object in which it is required, but subsequently it can be changed.
      And it is this changeability that creates the problem by Qt not allowing the concept of "required and readonly" at the same time. It would be great if following is made possible:

      required readonly property int itemNumber
      

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              qt.team.quick.subscriptions Qt Quick and Widgets Team
              Reporter:
              shmittal Shveta Mittal
              Votes:
              3 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes