Hello dear community,
In my application I am only using the qrc file system.
This is my approach:
1) I create a directory structure in my windows file system for my Qt Creator project.
AndroidQtApplication
- /qml
- /navigation
- /settings
2) Then I create a new qml file and save it under the path “/qml/navigation” on my windows file system.
I also want to have this windows file system structure in my Qt Creator project.
Therefore I create a prefix for every directory in my windows file system structure
Resource Files
- qml.src
- /navigation
- /settings
3) Add an existing qml file to the qrc file system.
And here is the problem! The path to the file will be shown as below.
Resource Files
- qml.src
- /navigation
- qml/navigation/navigationOverview.qml
- /settings
If I want to use that file in another qml file I have to use this path:
... source: "qrc:///navigation/qml/navigation/navigationOverview.qml
What I want is only to write down the qrc file system path (without the windows file system path!):
... source: "qrc:///navigation/navigationOverview.qml
And the end I will have some paths like this:
... source: "qrc:///navigation/settings/overview/qml/navigation/settings/overview/navigationSettingsOverview.qml"
this really sucks..
So the question is now: How can I achieve this?
(Maybe I didn’t understand how the qrc file system works?)
Thanks for your answers!
↧