[Android-development] Android QFileDialog

Rutledge Shawn Shawn.Rutledge at theqtcompany.com
Mon Feb 16 10:42:51 CET 2015


You could use QtQuick.Dialogs.  The implementation for Android is QML and uses FolderListModel to access the directory structure.  You can also modify DefaultFileDialog.qml to customize it for special needs.  But I see that we discussed it last June.

Are you mixing widgets and QtQuick?

On 16 Feb 2015, at 10:32, <maitai at virtual-winds.org> <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




More information about the Android-development mailing list