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

QDoc should automatically detect QML properties defined in C++ as readonly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P3: Somewhat important
    • None
    • 6.9
    • Build tools: qdoc
    • None

    Description

      Consider this class

      class Foo : public QObject {
          Q_OBJECT
          Q_PROPERTY(int x READ X CONSTANT)
          Q_PROPERTY(int y READ X CONSTANT)
      };
      
      /*!
       * \qmltype Foo
       *
       */
      
      /*!
       * \qmlproperty int Foo::x
       * \readonly
       */
      
      /*!
       * \qmlproperty int Foo::y
       */ 

      Both x and y are read-only properties, however only x shows up as such in the documentation, because it is marked as such. It would be nice if qdoc automatically detected the lack of WRITE in the property declaration for y and mark it as read-only automatically.

      Attachments

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

        Activity

          People

            david.boddie David Boddie
            nicolasfella Nicolas Fella
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There is 1 open Gerrit change