Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Qt Android: How to show the native file dialog?

I'm not sure if it is possible, but currently, when I show an open file dialog:

QString file = QFileDialog::getOpenFileName(this);

The dialog shown is not the native dialog for Android.

Instead, it looks like this (it's also not maximized):

enter image description here

I'm using Qt 5.2.0 for Android.

like image 657
sashoalm Avatar asked Jan 12 '14 12:01

sashoalm


1 Answers

Yes, this is possible in general by using Ministro as a workaround for now.

See the following bugreport for details:

No native controls on Qt 5.2 for Android, not in widgets nor in quick application

The QFileDialog seems to be specified by the QPlatformTheme which is supposed to be implemented.

like image 108
lpapp Avatar answered Oct 08 '22 22:10

lpapp