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

Impossible to import a lower version of Quickcontrols when build with higher version of Qt

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3: Somewhat important
    • None
    • 5.15.2
    • Quick: Controls 2
    • None
    • macOS

    Description

      the background is that, My app is written with Qt5.13, the Combobox does not have property "currentValue" in this version, So I defined one. 

      But When I upgrade to Qt5.15, this property is added, So the app will crash with error"Cannot override FINAL property".

       

      I don't want to modify my source code because the property "currentValue" is used in many places. I tried to write like this. but failed. 

      // code placeholder
      import QtQuick.Controls 2.13 as QC13
      QC13.ComboBox {
      property var currentValue: ""
      }

       The app will still crash , the error is same. 

      It seems that, If I use Qt5.15 to build my app, I can not force to use controls of 5.13 , right?

       

      Attachments

        Issue Links

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              yorkxychen york123 chen123
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: