Solved How to make an Qt qml compatible between two Qt version
-
Hello,
Initially my qt qml c++ application were running on qt5.12.7. Later I have migrated the application to support qt5.15.2.
I had to make some changes in the codebase, especially in qml part for the migration.Now, I've come across a use case scenario where my application should support/compatible with both qt5.12.7 and qt5.15.2.
Is that feasible? Especially how difficult it is to qml compatibility for two versions?Thank you in advance for your answers.
Anish
-
Is that feasible?
Yes.
Especially how difficult it is to qml compatibility for two versions?
Not difficult at all - it "just works". I'm working on a project right now where we support both versions. Just keep it compatible with 5.12 and 5.15 will work fine.
-
QQmlFileSelector might be helpful if most of the QML code is common, but a portion of it depends on the version of Qt.
-
@jeremy_k said in How to make an Qt qml compatible between two Qt version:
but a portion of it depends on the version of Qt.
Then rewrite it to use only APIs available in Qt 5.12.
Or use file selectors and maintain 2 separate QML implementations for these files.