Results 1 to 2 of 2

Thread: How do you implement a smooth scrolling text ticker with Qt?

  1. #1
    Join Date
    Aug 2010
    Posts
    2
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default How do you implement a smooth scrolling text ticker with Qt?

    I'm writing an application that, among other things, needs to display a scrolling text ticker.
    QPropertyAnimation looked like it would do the trick. Unfortunately, as soon as the app starts
    doing those other things (displaying image slide shows, videos, web pages, flash), the animation
    stutters.
    Since only the main thread can access the GUI in Qt, I believe I can't move the ticker to
    another thread. Moving loading and scaling of the images for the slide show to another thread
    helped, but not for videos (Phonon::VideoWidget) or other content (QWebView).
    Am I missing something obvious, or is it really such a big deal to put smooth scrolling text on
    the screen?

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: How do you implement a smooth scrolling text ticker with Qt?

    As soon as you block the main (gui) thread - why ever -, you can do what you want but you never will get a smooth scrolling ticker.

    Also skipping the property animation could speed up: See the ticker class from the C++ GUI Programming book: http://www.informit.com/articles/article.aspx?p=1405544.

  3. The following user says thank you to Lykurg for this useful post:

    Haiko Schol (12th August 2010)

Similar Threads

  1. Smooth Text Scrolling
    By Jones in forum Newbie
    Replies: 11
    Last Post: 19th November 2011, 18:40
  2. Replies: 3
    Last Post: 25th May 2010, 10:29
  3. "Smooth" Scrolling, QGraphicsView
    By nearlyNERD in forum Qt Programming
    Replies: 5
    Last Post: 25th February 2010, 17:18
  4. Replies: 6
    Last Post: 9th January 2008, 15:56
  5. automatic scrolling text edit
    By Vash5556 in forum Newbie
    Replies: 2
    Last Post: 19th March 2007, 18:32

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.