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

Qt Design Studio ships with examples that are not runnable out-of-the-box

    XMLWordPrintable

Details

    • QDS Berlin - 2024 Week 15/16

    Description

      Qt DS 4.3.2 provides this example: C:\Qt\Tools\QtDesignStudio\share\qtcreator\examples\ClusterTutorial\CMakeLists.txt

      However, if we load and build it this project from Qt Creator, it likely fails to run:

      QQmlApplicationEngine failed to load component
      qrc:Main/main.qml:33:1: Type App unavailable
      qrc:/content/App.qml:41:5: Type ClusterTutorial unavailable
      qrc:/content/ClusterTutorial.qml:58:5: Type Cluster_Art unavailable
      qrc:/content/Cluster_Art.ui.qml:56:1: module "QtQuick.Studio.Effects" is not installed
      qrc:/content/Cluster_Art.ui.qml:55:1: module "QtQuick.Studio.Components" is not installed
      qrc:/content/Cluster_Art.ui.qml:56:1: module "QtQuick.Studio.Effects" is not installed
      qrc:/content/Cluster_Art.ui.qml:55:1: module "QtQuick.Studio.Components" is not installed
      

       

      Furthermore, we also get compile time warnings from the QML compiler:

      Warning: App.qml:32:1: Warnings occurred while importing module "ClusterTutorial": [import]
      import ClusterTutorial 1.0
      ^^^^^^
      ---
      Warning: Failed to import ClusterTutorial. Are your import paths set up properly? [import]
      ---
      
      Warning: App.qml:35:12: Unqualified access [unqualified]
          width: Constants.width
                 ^^^^^^^^^
      Warning: App.qml:35:12: Could not compile binding for width: Cannot access value for name Constants [compiler]
          width: Constants.width
                 ^^^^^^^^^
      
      ...
      

       

      Notes

      • The CMakeLists.txt file needs to be updated to auto-fetch the Qt Quick Designer Components source code, and to set QML_IMPORT_PATH (see QDS-11149 )
      •  Other examples in C:\Qt\Tools\QtDesignStudio\share\qtcreator\examples also need updating

      Attachments

        Issue Links

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

          Activity

            People

              thohartm Thomas Hartmann
              skoh-qt Sze Howe Koh
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes