Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Contributor
Posts: 32
Registered: ‎01-18-2011
My Device: Curve 8900
Accepted Solution

Multiple QML Folders

Hi,

 

I'm a Blackberry Java Developer, and I'm trying to learn C++, and QML stuff, so I don't have idea if this question is stupid or not.

 

I have the assets/qml folder, which I configured on my .pro file:

 

lupdate_inclusion {
SOURCES += ../assets/qml/*.qml
}

 

Now I found out that I can create Custom Components, to integrate it on some pages. 

 

What I want to do now and I tried withou success is:

 

How can I use two QML separate folders?

/assets/qml/pages/*.qml

/assets/qml/components/*.qml

 

Developer
Posts: 16,786
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Multiple QML Folders

you can just use them like that, at least i did not change my project file.
in qml, you use import "foldername",
for example:
import "preferences"
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Contributor
Posts: 32
Registered: ‎01-18-2011
My Device: Curve 8900

Re: Multiple QML Folders

It worked Smiley Happy Thanks