> On 2021 Sep 7, at 22:13, Alexander Dyagilev <alervd...@gmail.com> wrote: > > For example, we do use MessageDialog component. In Qt5, it requires import > QtQuick.Dialogs 1.3, and in Qt6 - import Qt.labs.platform 1.1.
You can use Qt.labs.platform in both versions. > Is it possible to import different modules depending on the current Qt > version? You can use different QML files and switch them with QQmlFileSelector; or use some build system technique, like pre-processing, or putting different qml files into resources depending on the version. _______________________________________________ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest