Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-22021

API to query if a module is present

XMLWordPrintable

      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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            girish Girish Ramakrishnan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes