Qt 6.12 LTS is out! See what's new in the release
blog
QML Conditionaly import
-
IMHO best is to use separate QML files and file selectors (https://doc-snapshots.qt.io/qt5-5.7/qqmlfileselector.html) to choose between them. QQmlApplicationEngine has a built-in file selector installed, so all you need is to structure your files into appropriate '+' folders.