[Development] Create native FileDialog for Android

Denis Shienkov denis.shienkov at gmail.com
Fri Aug 10 11:45:23 CEST 2018


Hi guys,

Is it possible to add an own code to use the Android's native file 
picker dialog?

For example, I want (I think) to use a following framework (it 
introduced to Android since v4.4):
https://developer.android.com/guide/topics/providers/document-provider

But a problem is that an Android's platform plugin from the:

qtbase\src\plugins\platforms\android\qandroidplatformtheme.cpp

ignores a file dialogs at all:

{code}
QPlatformDialogHelper 
*QAndroidPlatformTheme::createPlatformDialogHelper(QPlatformTheme::DialogType 
type) const
{
     switch (type) {
     case MessageDialog:
         return new 
QtAndroidDialogHelpers::QAndroidPlatformMessageDialogHelper;
     default:
         return 0;
     }
}
{code}

So, is it possible to override this behavior somehow? Or e.g. to create 
an own
QAndroidPlatformTheme ? It it possible in Qt at all?

PS: What is reason that the Android's theme does not support the Color 
&& File Dialogs?

BR,
Denis


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20180810/8d738d61/attachment.html>


More information about the Development mailing list