View Full Version : QTextEdit and gif image
The Storm
31st August 2007, 00:18
Hi all,
I'm using Qt 4.3.1 OSE.
I want to know is there a way to animate the .gif image's in QTextEdit box.
When I put them they are not moving...
Thanks in advance. :)
The Storm
jpn
31st August 2007, 08:32
See wiki: Animation in QTextEdit (http://wiki.qtcentre.org/index.php?title=Animation_in_QTextEdit) (notice also the discussion page).
The Storm
31st August 2007, 21:03
Mmm this is interesting it seems that it set for image the state of the animation. Cool I will try it. Thanks :)
EDIT: It seems that this class from the link have memory leak. I think it is in this line:
document()->addResource(QTextDocument::ImageResource, urls.value(movie), movie->currentPixmap());
We add each frame new Resource but we don't clear the old one...
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.