Getting the issue with the QFileDialog for QT version upgrade 5.12.9 to 5.15.2
-
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 image url)
-
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