Results 1 to 2 of 2

Thread: New thread to handle paintEvent

  1. #1
    Join Date
    Jan 2006
    Posts
    70
    Thanks
    13
    Thanked 5 Times in 5 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default New thread to handle paintEvent

    I have a Qt GUI that contains a widget that plots data. The plots are being update and repainted so often that the main GUI thread is sluggish. Can I get a new QThread to handle the paintEvent of a QWidget?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: New thread to handle paintEvent

    Quote Originally Posted by bitChanger
    I have a Qt GUI that contains a widget that plots data. The plots are being update and repainted so often that the main GUI thread is sluggish.
    Perhaps you could draw less? Did you try tweaking the widget attributes?

    Can I get a new QThread to handle the paintEvent of a QWidget?
    Unfortunately not, but you can draw on a QImage.

Similar Threads

  1. Thread Help
    By tntcoda in forum Qt Programming
    Replies: 1
    Last Post: 16th January 2009, 22:10
  2. KDE/QWT doubt on debian sarge
    By hildebrand in forum KDE Forum
    Replies: 13
    Last Post: 25th April 2007, 06:13
  3. Replies: 10
    Last Post: 20th March 2007, 22:19
  4. Problem closing a QMainWindow in Qt4.2
    By ian in forum Qt Programming
    Replies: 11
    Last Post: 17th October 2006, 00:49
  5. [QT4] QThread and printing a QList<QPixmap>
    By KShots in forum Qt Programming
    Replies: 3
    Last Post: 24th April 2006, 21:44

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.