Is it possible to draw an animated text with QPainter?
I only want to change color of text periodically.
If possible how to achieve?
views:
47answers:
1
+1
A:
You need to create new slot in witch you will change variable storing color you use to paint text. In the end of that slot you call
update();
to redraw widget.
To do it periodically you need also QTimer connected to that slot. In PaintEvent you set color variable to pen or brush ( I don't remember witch is used to draw text) used by QPainter.
Thats all.
firescreamer
2010-06-01 10:23:55