Test available module
QML and Qt Quick
2
Posts
2
Posters
1.1k
Views
2
Watching
-
Hello,
Is it possible to try import in QML document ?
By example :try { import QtQuick 2.5 } catch { import QtQuick 2.0 }
or use another instruction to test if a module is available
Thank you in advance
Hi @CharlieG
AFAIK that is not possible from QML. But you can try checking for errors by loading the QML from C++ side. For eg. if you use QQmlComponent you can check for errors using errors.