Test available module
-
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.
2/2