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

API to query if a module is present

    XMLWordPrintable

Details

    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

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes