Unsolved Read Flile to QImage
-
Hello together.
I got a simpel thing wich i cant figure out..
i got a image path on android "file:///storage/emulated/0/DCIM/IMG_00000001.jpg".
Now i want to Read that file to QImage readedFile;
I am faling all the time... can someone help me mybe? -
What exactly is failing? Can you show us your (relevant!) code?
The most minimalistic solution would be to useQImage::load(const QString& filePath)
. More advanced approaches would be usingQImageReader
. -
OmG. I got it to work.....
Just changed
"file:///storage/emulated/0/DCIM/IMG_00000001.jpg"
to
"/storage/emulated/0/DCIM/IMG_00000001.jpg".but Thx @ all
-
Ah, I forgot to mention that, sorry :p