Details
-
Bug
-
Resolution: Done
-
P2: Important
-
QDS 4.3.2
-
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
- mentioned in
-
Page Loading...