How to check in QML if plugin is available
I want to check from my QML application if the required plugin is available or not. so based on that i can have some conditional steps to do.
Does anybody know how to do that ? is it possible in QML to check ?
Thanks a lot :)
There isn’t any official, built-in way to do this from QML in Qt Quick 1.x. It isn’t especially elegant, but as minimoog77 suggested, a workaround is to use Loader or dynamic item creation to try and load a file with the needed import, and then check whether or not you’ve received any errors.
Hopefully we’ll have a better solution for this in a future version of QML.