Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. [QML] FileDialog in Android application
QtWS25 Last Chance

[QML] FileDialog in Android application

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 2.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • CharlieGC Offline
    CharlieGC Offline
    CharlieG
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    1
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      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.

      (Z(:^

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved