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

Interaction between FINAL and REVISION on a property don't fully make sense

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 5.10
    • Quick: Controls 2
    • None

      QtQuickControls2 added an 'opened' prop to Popup in 5.10 (import 2.3) marked REVISION 3 FINAL.

      This should not have affected code using older imports in my opinion, but FINAL appears to trump REVISION, meaning that code that had:

          property bool opened

      ... in a Drawer or Popup etc with the older import version now breaks with the message:

          Cannot override FINAL property

      I think that REVISION needs to be checked before FINAL in this case.

      Testcase:

      import QtQuick.Controls 2.2
      
      Drawer {
          property bool opened: position > 0.0 /* don't be closed until we are fully closed */
      }
      

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            w00t Robin Burchell
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes