Results 1 to 2 of 2

Thread: Animated text with QPainter

  1. #1
    Join Date
    Jan 2010
    Location
    Turkey
    Posts
    39
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Animated text with QPainter

    Is it possible to draw an animated text with QPainter?
    I only want to change color of text periodically.
    If possible how to achieve?

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Animated text with QPainter

    Yes, using a timer.

    If you only want to display colored text, you can just subclass a QLabel, add a timer and update the textcolor

Similar Threads

  1. Align text's in Qpainter
    By sanku in forum Qt Programming
    Replies: 8
    Last Post: 23rd April 2010, 09:29
  2. QPainter::drawText, draw big text
    By franco.amato in forum Newbie
    Replies: 3
    Last Post: 18th March 2010, 08:32
  3. Positioning Rich Text when using QPainter
    By millsks in forum Qt Programming
    Replies: 8
    Last Post: 23rd June 2009, 07:21
  4. Text rotation in QPainter
    By acpRobert in forum Newbie
    Replies: 1
    Last Post: 29th April 2009, 21:07
  5. Rich text with QPainter?
    By sarefo in forum Qt Programming
    Replies: 3
    Last Post: 7th April 2008, 14:40

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.