Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Getting the issue with the QFileDialog for QT version upgrade 5.12.9 to 5.15.2
Forum Update on Monday, May 27th 2025

Getting the issue with the QFileDialog for QT version upgrade 5.12.9 to 5.15.2

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
qt 5.15.0androidfile dialog
2 Posts 2 Posters 381 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.
  • K Offline
    K Offline
    Kuldip Somwanshi
    wrote on 17 Feb 2022, 04:45 last edited by Kuldip Somwanshi
    #1

    I am using the QFileDialog to get the URL for the selected file and getting the issue when I upgraded my QT version from 5.12.9 to 5.15.2.With the Qt 5.12.9 QFileDialog returning the valid string with the selected file URL path. But when I switched to QT 5.15.2 then getting empty file URL string with the same code. Plz Help me to resolve this 63fa977a-fc97-45fd-bceb-aed4791b2493-image.png image url)

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 17 Feb 2022, 06:19 last edited by
      #2

      Modern Androids heavily restrict access to the file system, and getting file URLs is no longer allowed. I suspect you have bumped target SDK when upgrading and now you are bound by newer rules from Android: you'll have to upgrade your code to use storage providers and permissions.

      Some info: https://developer.android.com/training/data-storage and https://developer.android.com/guide/topics/providers/document-provider

      (Z(:^

      1 Reply Last reply
      2

      1/2

      17 Feb 2022, 04:45

      • Login

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