sashoalm
sashoalm

Reputation: 79467

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.

Upvotes: 9

Views: 5255

Answers (1)

László Papp
László Papp

Reputation: 53173

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.

Upvotes: 3

Related Questions