[Android-development] Android QFileDialog

maitai at virtual-winds.org maitai at virtual-winds.org
Mon Feb 16 11:04:09 CET 2015


You can use

QStandardPaths::locate(...) to discover writable locations.

Also handy is qgetenv("EXTERNAL_STORAGE") and such

Le 16-02-2015 10:58, Robert Iakobashvili a écrit :
> Dear Phillippe,
> Thank you for the direction
> and it looks promising.
> 
> How are you making discovery of writable locations?
> 
> Are you leaving it for user or you are offering a limited set of 
> locations?
> 
> Thanks,
> Robert
> Regards,
> Robert Iakobashvili, Ph.D.
> 
> www.ghotit.com
> ................................
> Ghotit Dyslexia
> Real Writer & Reader
> ................................
> 
> 
> On Mon, Feb 16, 2015 at 11:32 AM,  <maitai at virtual-winds.org> wrote:
>> Hello,
>> 
>> We based it on QFileSystemModel and QModelIndex. You can easily find
>> some examples on internet and adapt it to Android. It's called the 
>> same
>> way QFileDialog is, so it's just a #ifdef in case our app is running
>> under android (Widget based, no qml).
>> 
>> Philippe Lelong.
>> 
>> 
>> Le 16-02-2015 10:16, Robert Iakobashvili a écrit :
>>> On Fri, Feb 13, 2015 at 7:09 PM,  <maitai at virtual-winds.org> wrote:
>>>> Hello,
>>>> 
>>>> I don't have such problem because we are using our own fileDialog 
>>>> and
>>>> colorDialog for Android (anyway QFileDialog, QFontDialog and
>>>> QColorDialog
>>>> are not usable at all on Android).
>>> 
>>>> Thanks
>>>> Philippe Lelong
>>>> 
>>> 
>>> Changed the subject in order not to hay-jack
>>> the original conversation to another direction.
>>> 
>>> Could you provide some tips regarding your
>>> custom-made android file dialog?
>>> 
>>> Have you made your own widget or a native dialog
>>> above the Qt infra?
>>> 
>>> My understanding is that writable locations to
>>> be detected: the internal, the Downloads and the sdcard,
>>> if any, and presented as folder options.
>>> 
>>> Any tips or directions would be very much
>>> appreciated.
>>> 
>>> Thank you in advance.
>>> Robert
>>> _______________________________________________
>>> Android-development mailing list
>>> Android-development at qt-project.org
>>> http://lists.qt-project.org/mailman/listinfo/android-development
>> _______________________________________________
>> Android-development mailing list
>> Android-development at qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/android-development
> _______________________________________________
> Android-development mailing list
> Android-development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/android-development



More information about the Android-development mailing list