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

New AbstractButton 'icon' property in QtQuick.Controls 2.3 affects code with older version imports

XMLWordPrintable

      Attempting to load this QML with qmlscene:

      import QtQuick.Controls 2.2
      
      RoundButton {
          property string icon: ""
      } 

      Produces the error: 

      file:///home/.../MyButton.qml:4 Cannot override FINAL property
      

      Despite the fact that the icon property was introduced in QtQuick.Controls 2.3 and this code imports QtQuick.Controls 2.2.

        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
            nocnokneo Taylor Braun-Jones
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes