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

[5.14 REG] New properties in ComboBox clash with custom properties (revision ignored)

    XMLWordPrintable

Details

    • 9cef433db (dev), 433a1872f (6.5), c62c763d6 (6.6)

    Description

      The new properties in ComboBox clash with properties with the same name, even if importing previous revisions of the QtQuick.Controls module that should not expose the properties at all.

      import QtQuick 2.12
      import QtQuick.Window 2.12
      import QtQuick.Controls 2.0
      
      Window {
          visible: true
          width: 640
          height: 480
          title: qsTr("Hello World")
      
          ComboBox {
              anchors.centerIn: parent
      
              property var currentValue: 0
          }
      }
      

      This, despite the "2.0" import, leads to an error:

      qrc:/main.qml:14 Cannot override FINAL property
      

      Thus existing QML code that happens to use the same properties that were now introduced isn't source compatible, other than what the versioning system promises.

      See also QTBUG-65266.

      Attachments

        Issue Links

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

          Activity

            People

              mitch_curtis Mitch Curtis
              frank.osterfeld Frank Osterfeld
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes