Details
-
Task
-
Resolution: Duplicate
-
P3: Somewhat important
-
None
Description
It would be nice to have an API to query if a module is present or not both in the C++ and QML side.
Use case: For you app, we need to check if mobility is installed. The C++ app itself does not rely on mobility (the QML requires it). If mobility is not present (as is the case for many of our embedded targets), we switch the VideoPlayer QML to an alternative component (a QProcess based media player).
Currently, the approach to detect if a module is present involved createComponent("import QtMobility 1.1; ..") and see if that succeeds. Instead it would nice to query both in C++ and QML,
a) the list of installed modules and their versions
b) check presence of a module
Attachments
Issue Links
- duplicates
-
QTBUG-16854 Conditional Imports
-
- Closed
-