how do I reference "styles" from a related QtDS project in my QtQuick application?
-
I'm struggling with knowing how to integrate a Qt Design Studio project into my QtQuick application. For reference, my projects are available here in my github account:
The QtDS project: https://github.com/alpartis/sunnygui The QtQuick app: https://github.com/alpartis/sunriseThese projects are meant to sit side-by-side on the filesystem so that
sunrisecan reference sunnygui forms and styles by way of the use ofsunnygui.qrcin the sunrise project.sunnygui.qrccontains aliases and references to.ui.qmlforms, which, in turn, make use of "styles" also contained in thesunnyguiproject.The problem I'm having at the moment is in successfully referencing the
SunScreen.ui.qml(with alias "SunScreenForm") and the "styles" contained therein fromSunScreen.qmlin the sunrise application.Everything appears to be correct in the QtDS project and I'm able to use styles in
sunnygui/SunScreen.ui.qmlsomething like this:import QtQuick 2.12 import sunnygui 1.0 Rectangle { color: SunStyles.sunshineYellow }There is a qmldir file in
sunnygui/imports/sunnygui/that defines SunStyles.Now, over in the QtQuick application project, I have included a
sunnygui.qrcresource file that sets up the "SunScreenForm" alias in reference to the../sunnygui/SunScreen.ui.qml. Consequently, I havesunrise/SunScreen.qmlthat looks something like this:import QtQuick 2.12 import "qrc:/forms/SunScreenForm" Item { SunScreenForm { <--- "Unknown component" } }What is the "typical" way to integrate the .ui.qml forms from a Qt Design Studio project into a QtQuick application?