PDA

View Full Version : Animation in QTextEdit



mero
30th September 2009, 21:58
Hello,

I use this example in my program:
http://wiki.qtcentre.org/index.php?title=Animation_in_QTextEdit
and it is good working but, after adding few animations/emoticons it eats 80% CPU !
I add existAnimation function to check existing animations in urls (hash) - to prevent adding existing - and this not helped.

What else can I do ?

jpn
30th September 2009, 22:24
http://blog.forwardbias.in/2009/09/displaying-html-with-animated-gifs.html

mero
26th October 2009, 17:52
http://blog.forwardbias.in/2009/09/displaying-html-with-animated-gifs.html

ok, I include TextDocument and TexEdit from this app, now I can't build it, I've got Error: Undefined interface in line: Q_INTERFACES(QTextObjectInterface)
When I comment this line it is working, but images are not animated... so this line I think must work...