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

all Q_PROPERTY declarations in examples and documentation should include FINAL

    XMLWordPrintable

Details

    Description

      We don't have a proper migration path for the default attributes of Q_PROPERTY, yet, but FINAL should definitely be the default. Overriding properties is rarely done on purpose and often causes confusion. Also, the Qt Quick Compilers have a hard time dealing with potentially overridden properties.

      What we can do already today is push people to use FINAL in all their properties. One way to do so is add it to all places that may get copy-pasted into user code.

      Attachments

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

        Activity

          People

            docteam Qt Documentation Team
            ulherman Ulf Hermann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes