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

qmlimportscanner does not scan inline qml in cpp

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • None
    • 5.12
    • Build tools: Other
    • None
    • Android

    Description

      Currently qmlimportscanner is unable to find and scan qmls defined inline in cpp.
      This prevents deploying qml modules to a device.

      QByteArray plainQML = \
          "import QtQuick 2.0\n" \
          "import QtMultimedia 5.0\n" \
          "VideoOutput {" \
          "    width: 150;" \
          "    height: 100;" \
          "}";
      
      QQmlEngine engine;
      QQmlComponent *mappingComponent = new QQmlComponent(&engine);
      mappingComponent->setData(plainQML, QUrl());
      QObject *mappingOutput = mappingComponent->create();

      Using this example, QtQuick is not found

      Attachments

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

        Activity

          People

            ulherman Ulf Hermann
            valentyn.doroshchuk Valentyn Doroshchuk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes