Is it possible to draw an animated text with QPainter?
I only want to change color of text periodically. If possible 开发者_StackOverflow中文版how to achieve?You need to create new slot in which 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 which is used to draw text) used by QPainter.
That's all.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论