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
Posts: 123
Registered: ‎01-11-2013
My Device: BlackBerry z10
My Carrier: Docomo
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
Posts: 87
Registered: ‎07-23-2009
My Device: Z30
My Carrier: XL

Re: Error In project when trying FilePicker code..

have you add

LIBS += -lbbcascadespickers

in your .pro file ?

 

Highlighted
Developer
Posts: 123
Registered: ‎01-11-2013
My Device: BlackBerry z10
My Carrier: Docomo

Re: Error In project when trying FilePicker code..

Thanks, it is working ..
Developer
Posts: 87
Registered: ‎07-23-2009
My Device: Z30
My Carrier: XL

Re: Error In project when trying FilePicker code..

you're welcome Smiley Happy

 

happy coding