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

Details

    Description

      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.

      Attachments

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              nocnokneo Taylor Braun-Jones
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes