Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

Resources and folders

$
0
0
Hello I need a little help here. I want to save qmls in folders so they are easier to find and work with, but I don’t know how to deal with the resources system when doing this. (If all files are saved in the same directory it works fine but it’s a mess) So let’s say that my filesytem is:   ---Main/     --main.qml   ---Screens/     --Second.qml     --Third.qml   ---Components/     --Keyboard.qml     --Gallery.qml     --BackButton.qml     --KeyboardSubComponents/       ---Keyboard_buttons.qml       ---Keyboard_display.qml etc. And that my resource file follows the same hierarchy. If I try to load keyboard component from main.qml such as Keyboard {     id: keyboard       ... } qtcreator complains that it doesn’t know what “Keyboard” is, so I guess it has something to do with imports. I’ve tried lots of combinations but none of them worked. Any clue? Thanks.

Viewing all articles
Browse latest Browse all 4972

Trending Articles