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: 146
Registered: ‎05-18-2012
My Device: PlayBook & STL100-1 LE Z10 & Dev Alpha C
My Carrier: Telefonica Spain
Accepted Solution

FilePicker fileSelected() signal dont work

[ Edited ]

When I select a file in FilePicker, it must emit fileSelected() signal with QStringList of  URI of the file, but this QStringList is empty.


 FilePicker::selectedFiles() public method dont works either.

 

How i know the selected files in FilePicker now ??

 

This Gold SDK is catastrophic for me.

 

Help, help !!!!!!

---------------------------------------------------------------
Leandro Cerdan - Duantox Apps
BlackBerry Elite dev
TapyHold, Built for Blackberry multimedia scrapbook
Developer
Posts: 1,746
Registered: ‎04-08-2010
My Device: Passport Silver, PRIV
My Carrier: Telekom.de, O2, Vodafone

Re: FilePicker fileSelected() signal dont work

FilePicker works well in QML

FilePicker {
     id: picker
     property string selectedFile
     title: qsTr("File Picker")
     mode: FilePickerMode.Picker // pickerMode.selectedValue
     onFileSelected: {
         selectedFile = selectedFiles[0]

 

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development native Mobile Business Apps
BlackBerry 10 | Qt Mobile (Android, iOS)
Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org
mobile-development: http://appbus.org Twitter: @ekkescorner
Developer
Posts: 146
Registered: ‎05-18-2012
My Device: PlayBook & STL100-1 LE Z10 & Dev Alpha C
My Carrier: Telefonica Spain

Re: FilePicker fileSelected() signal dont work

[ Edited ]

... but don't work with C++

---------------------------------------------------------------
Leandro Cerdan - Duantox Apps
BlackBerry Elite dev
TapyHold, Built for Blackberry multimedia scrapbook
Highlighted
Developer
Posts: 146
Registered: ‎05-18-2012
My Device: PlayBook & STL100-1 LE Z10 & Dev Alpha C
My Carrier: Telefonica Spain

Re: FilePicker fileSelected() signal dont work

Ok, Advice to all people using FilePicker :

 

In .pro archive :

 

BEFORE GOLD SDK

LIBS += -lfilepicker

 AFTER GOLD SDK

LIBS += -lbbcascadespickers
INCLUDEPATH += ${QNX_TARGET}/usr/include/bb/cascades/pickers

 Why blackberry dont updates this things at docs ??

---------------------------------------------------------------
Leandro Cerdan - Duantox Apps
BlackBerry Elite dev
TapyHold, Built for Blackberry multimedia scrapbook
Developer
Posts: 67
Registered: ‎06-28-2012
My Device: BlackBerry Z10LE
My Carrier: T-Mobile

Re: FilePicker fileSelected() signal dont work

Thanks blackqtcoder! You saved me a lot of frustration Smiley Happy