Results 1 to 3 of 3

Thread: slow response from main GUI while thread is running

  1. #1
    Join Date
    Dec 2009
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default slow response from main GUI while thread is running

    I have a QT main GUI that runs a QThread object in WIndows XP and QT4 v4.4.3

    My question is:

    what tips do folks have for improving main GUI responsiveness while a thread spawned from main GUI is running? There's stuff that updates on the main GUI from the thread, but it takes 5 seconds or more for the GUI's event loop to handle any mouse event.

    should i use timers or mutex's or some other trick to resolve this?

    thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Kerala
    Posts
    371
    Thanks
    76
    Thanked 37 Times in 32 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: slow response from main GUI while thread is running

    I recommend that you read this article by wysota. Provides lots of insight into this topic

    http://doc.trolltech.com/qq/qq27-responsive-guis.html
    We can't solve problems by using the same kind of thinking we used when we created them

  3. #3
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: slow response from main GUI while thread is running

    A common mistake is thinking that slots are being executed in the spawned thread, when they are actually being executed from the main thread, and thus blocking the gui updates.

Similar Threads

  1. Replies: 9
    Last Post: 28th November 2009, 21:31
  2. Replies: 16
    Last Post: 7th October 2009, 09:17
  3. Replies: 6
    Last Post: 29th April 2009, 19:17
  4. KDE/QWT doubt on debian sarge
    By hildebrand in forum KDE Forum
    Replies: 13
    Last Post: 25th April 2007, 07:13
  5. Replies: 10
    Last Post: 20th March 2007, 23:19

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.