Important: Please read the Qt Code of Conduct -

[QML] FileDialog in Android application

  • Hello,

    I need to use FileDialgo in my application.
    With desktop devive I don't have problem, but if I run my app in Android device, I have a problem of display.

    For example, with this code :

    Dialog {
            id: myDialog
            title: qsTr("Select a file to import")
            standardButtons: StandardButton.Cancel | StandardButton.Ok
            width: 300; height: 400

    And in main cpp, if I have :


    the result is that buttons are very very very big.

    Have you an idea where is the problem and/or how get a great display ?

    Thank you in advance.


  • Moderators

    Use newest Qt possible, as this topic is still under development - and I think it is still not solved on Android. Try the labs dialog:, maybe it will look better. Last time I tried (on Qt 5.8), it did not look good. Maybe it's better in 5.9 or 5.10.

Log in to reply