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
Developer
CapQNX
Posts: 119
Registered: ‎01-11-2013
My Device: BlackBerry z10
Accepted Solution

Error In project when trying FilePicker code..

[ Edited ]

Hello, friends.. I have strange issue..

 

I am implementing FilePicker in my code. I did almost all, I added this

 

qmlRegisterType<bb::cascades::pickers::FilePicker>("CustomComponent", 1, 0,"FilePicker");

 

 

code in main.cpp and build project then I getting error in project's main directory. There are no any error in any file. How to solve this issue?

Developer
hakimrie
Posts: 82
Registered: ‎07-23-2009
My Device: 9900

Re: Error In project when trying FilePicker code..

have you add

LIBS += -lbbcascadespickers

in your .pro file ?

 

Developer
CapQNX
Posts: 119
Registered: ‎01-11-2013
My Device: BlackBerry z10

Re: Error In project when trying FilePicker code..

Thanks, it is working ..
Developer
hakimrie
Posts: 82
Registered: ‎07-23-2009
My Device: 9900

Re: Error In project when trying FilePicker code..

you're welcome :smileyhappy:

 

happy coding