PDA

View Full Version : [Problem] Qt load large image



rstalin
11th October 2011, 09:24
hi


Qt whether provide any api can load large image and only use memory the part that you can see.

Now i use many tiles to combine one large image.

But files too much, build the sis and install in N8 take me 30 min the progress only 50%

Ant it be interrupted because the memory is not enough.

I think I have two ways. One is solve the load large the memory usage problem.

Another is sis package numerous files install problem.

Anyone have a good idea for this problem?

mvuori
11th October 2011, 17:08
No, Qt doesn't have a way to load just a part of an image file, to my knowledge. You need to write such a function yourself.

When it comes to your horribly large SIS taking 30 minutes to install, I don't think any mobile user waits that long for something to install. It might be better to just install the application and load data from Internet as needed -- that's what the smartphones are designed for.

wysota
11th October 2011, 18:21
No, Qt doesn't have a way to load just a part of an image file, to my knowledge.
Actually it does or at least provides an ability for image handlers to support it. However which of the existing handlers DO support it, one has to check by himself.

Have a look at QImageIOHandler::ImageOption and specifically at ClipRect.