Hi, how do I load hidden images in Qpixmap or QImage? Or is there any way to do it? Thanks in advance for the reply.
Hi, how do I load hidden images in Qpixmap or QImage? Or is there any way to do it? Thanks in advance for the reply.
what does it mean by hidden images if you can get the file names at path properly then yes you can load them code in wiki
the hidden thumbnails implemented by the native nokia gallery.. im loading multiple images from the memory but i have problems loading hidden images though i had the correct path.
you mean the gallery cache files .. if you want to use them .. i suggest you should not.
can you let us know what you are targetting for ?
im trying to implement a gallery in Qt. i had problems loading large images as my heap is being exhausted. so i thought using the gallery cache files would be better since they are smaller in sizes.
im using Qt 4.7.1 QPixmap. i tried loading and scaling via QImageReader yet some of the images still cannot be loaded.
from my experiance QImageReader works for N8 taken images too, so should be fine . can you let us know where it is failing .
i did something like this:
QImageReader reader;
reader.setFileName(fname_);
QSize imageSize = reader.size();
imageSize.scale(QSize(100,100),Qt::KeepAspectRatio);
reader.setScaledSize(imageSize);
QImage image = reader.read();
when i get the depth() of the image, it returns a 0 (zero) for some images. which means that the image has not been loaded.
What is the size of images? I also faced the same issue with the api. It is not working fine with big size image.
Use Qt-Quick to make your application UI more attractive.
http://store.ovi.com/content/271896 | http://store.ovi.com/content/276199 | http://store.ovi.com/content/276202 | http://store.ovi.com/content/280827
you mean QImage::depth() ? i suggest you want to check the QImage::size() also checking imageSize if it can load the images or notwhen i get the depth() of the image, it returns a 0 (zero) for some images
it might be the encoding of the image for it is only 28kb file. yet the problem is i cannot convert it to a lower encoding since it does not load. btw, some images with of bigger sizes are being loaded.