Cannot work with components imported from QT Design Studio
-
Hi all,
I'm trying to integrate QT Bridge, QT Design Studio and QT Creator in our development process.
Right now I can create the UI in Adobe PS and export it to QT DS thanks to the plugin. So I have a QTDS project with all the .ui.qml files.Then I can import all of this to QT Creator (no qt quick timeline). From now on, let's say I have two forms, "Artboard1_form.ui.qml" and "Artboard2_form.ui.qml".
Then I tried to add an Artboard1.qml file to add some business logic into my form. It has the following content
import QtQuick 2.0 import "qml/Artboard1_form.ui.qml" // <- path is correct Artboard1_form // <- but here I gen an "Unknown Component (M300)" error { }
However, with this simple code I get an M300 error (unknown component) on the "Artboard1_form" line.
Also, if in my "main.qml" I try to add a reference to either component, I get errors
Window { // some very generic stuff visible: true width: 640 height: 480 title: qsTr("Hello World") Artboard1_form // <- here, I get an "Unknown component (M300)" error { } // line below, I get a "Could not resolve the prototype "Artboard1_form" of "Artboard1" " (M301) error Artboard1 { } }
Any idea on why Qt Creator complains and how I can fix these errors?