QDesktopServices::openUrl on Android
-
Hi,I’m working on a Qt app whose target may be Windows desktop or Android. QDesktopServices::openUrl works nicely on Windows. i have a problem with QDesktopServices::openUrl on android. I can open url and video files but i can not open image files.I have tested follow code :
@
QDesktopServices::openUrl(QUrl::fromLocalFile("/storage/emulated/0/nava/image/2.jpg"));
or
QDesktopServices::openUrl(QUrl::fromLocalFile("file:///storage/emulated/0/nava/image/2.jpg"));
@ -
Hi,
Just a quick idea but it seams to you accessing some special storage device so are you sure your application has the necessary permissions for that ?
Hope it helps