[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 :

    QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
    

    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.

    Charlie.


  • 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: https://doc.qt.io/qt-5/qml-qt-labs-platform-filedialog.html, 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
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.