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

QtDS compatibility - Improve qmldir path discovery

    XMLWordPrintable

Details

    • Android

    Description

      Why?

      Cause

      • As a developer I want my QML types resolved. Now when the QML type is derived from an external module other than installed ones this does not work.
      • This can be fixed by finding a proper way of resolving QML imports and adding them to the qmldom arguments where it's being invoked from androiddeployqt.
         (see QTBUG-127554)

      Customer

      • Android Developer using QtDS and AS

      Cruft

      • Also generic and not only QtDS 

      What?

      Definition

      • Improve qmldir path discovery in ADQt code generator by finding a proper way of resolving QML imports and adding them to the qmldom arguments where it's being invoked from androiddeployqt
      • The attached project does not work out of the box because if several reasons including above:
        1. The App/main.cpp handles QQuickView creation which conflicts with QtQuickView
        2. The QtDSProjectContent/App.qml as the component which is going to be loaded by QtQuickView (currently loaded in main.cpp as an input tho QQmlApplicationEngine) already has a Window root. This is not allowed by QtQuickView because it expects to instantiate QQuickView as the main window.
        3. Raised by this issuse: even if we fix the QtDS project with the above, building the project will fail if QT_ANDROID_GENERATE_JAVA_QTQUICKVIEW_CONTENTS is provided to be ON as a cmake variable.
          QtDSProject.tar.gz

      Demarcation

      • Design Studio changes not needed

      Dependencies

      Attachments

        1. QtDSProject.tar.gz
          7 kB
          Soheil Armin

        Issue Links

          For Gerrit Dashboard: QTBUG-125892
          # Subject Branch Project Status CR V

          Activity

            People

              soarmin Soheil Armin
              soarmin Soheil Armin
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There is 1 open Gerrit change