Uploaded image for project: 'Qt Design Studio'
  1. Qt Design Studio
  2. QDS-11226

[MCU] importPaths are not passed to qmlprojectexporter

    XMLWordPrintable

Details

    Description

      Steps to reproduce

      1. Load the attached project, MyProject/MyProject.qmlproject
      2. Click "Run Project" or "Live Preview"

       

      Outcomes
      The preview fails to start. We see this error in the Compile Output pane:

      Screen01.ui.qml:2:1: error: The module 'MyModule' could not be found in the include paths.
      

       

      Workaround 1: Manually pass the import path to qmlprojectexporter

      1. Enable "View" > "Mode Selector Style" > "Icons and Text"
      2. Select "Projects" mode (Ctrl+5)
      3. Expand "Run Settings" > "Qt for MCUs Deploy Step"
      4. Add this to the "Arguments" field: --include-dirs "<path>/<to>/MyExternalComponents"

       

      Workaround 2: Treat the project as a Desktop project instead of an MCU project

      In the *.qmlproject file, comment out the line, QDS.qtForMCUs: true

      This disables qmlprojectexporter and the preview runs correctly.

      Attachments

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

        Activity

          People

            yasser Yasser Grimes
            skoh-qt Sze Howe Koh
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes