PDA

View Full Version : Best way to animate a resizing image



Luc4
19th March 2010, 12:37
Hi! Which is the best way to animate the resizing of an image? I subclassed a QLabel and rewrote the resize method to scale a preloaded image using the fast algorithm and then I animated the geometry using QPropertyAnimation. Is this the best way from the performance point of view? I still get too low performance.
Thanks!

Bitto
19th March 2010, 12:41
Could you share the whole case study with us? It's easier to understand what the best approach is if we know what you want the end result to be like :-).

Luc4
19th March 2010, 12:58
What do you mean by case study? The situation I'm handling? I'm trying to write an image browser. So I have my folder with my thumbnails. When I click on a thumbnail, I want the image to start growing in size till it gets to a specified size. Pretty common approach. The problem is that I'm running this application on a device with low performance, and the approach I used resulted in something that doesn't completely satisfy me. Is there any other possible way?
Thanks!