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

qmltc: Add ability to mark Q_PROPERTY() as FINAL

    XMLWordPrintable

Details

    Description

      Code

      // Test.qml
      import QtQuick
      
      Item {
          property int value: 42
      }
      

       

      qmltc output

      // test.h (Generated by qmltc)
      class Test : public QQuickItem
      {
          Q_OBJECT
          QML_ELEMENT
          Q_PROPERTY(int value WRITE setValue READ value BINDABLE bindableValue)
          // ...
      };
      

       

      Suggestion
      We want qmltc to generate this by default:

      Q_PROPERTY(int value WRITE setValue READ value BINDABLE bindableValue FINAL)
      

      Attachments

        Issue Links

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

          Activity

            People

              qtqmlteam Qt Qml Team User
              skoh-qt Sze Howe Koh
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes