1
votes

I have an address to my mobile image like /sdcard/DCIM/Camera/1.jpg or /storage/emulated/0/DCIM/Camera/1.jpg

I use QFile and QImage for read that

  • when read image with qfile, it can't open that but exist function return true
  • qimage also can't load image
  • I also use file:// before upper addresses but not worked.

I use qt 5.8 and api 23(android 6) and i make android manifest file and take permission for read and write to storage.

1
Only requesting permissions in manifest file is not enough anymore since Android 6. Did you adapt for modern times? - greenapps
No, how can i do that? - ebigood

1 Answers

0
votes

Your problem may be related to using too large resolution images. If you set the sourceSize property, it scales down youre image to the desired resolution.