Results 1 to 20 of 27

Thread: Thread freezing GUI

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 541 Times in 521 Posts

    Default Re: Thread freezing GUI

    There is, however, another Widget-based plugin that I connect to sub threads whenever I create them.
    By connect do you mean at connecting them to the started() signal of a thread, I assume.

    The bottom line is that no widgets must live in other thread than the GUI thread.
    Qt::AutoConnection means Qt::QueuedConnection if receiving object does not live in the emitting thread, and Qt:irectConnection otherwise.

    You said that the threads are performing IO operations.
    I assume that they will read something from some device and update the GUI accordingly.
    A problem could be the rate at which you're updating the GUI.
    Sending a lot ( and I mean a lot ) of signals from the worker threads to the GUI could put some heavy load on the GUI's event handler.

    Regards
    Last edited by marcel; 30th May 2007 at 22:23.

Similar Threads

  1. KDE/QWT doubt on debian sarge
    By hildebrand in forum KDE Forum
    Replies: 13
    Last Post: 25th April 2007, 07:13
  2. Problem closing a QMainWindow in Qt4.2
    By ian in forum Qt Programming
    Replies: 11
    Last Post: 17th October 2006, 01:49
  3. simple thread layout question
    By mhoover in forum Qt Programming
    Replies: 1
    Last Post: 12th August 2006, 12:02
  4. [QT4] QThread and printing a QList<QPixmap>
    By KShots in forum Qt Programming
    Replies: 3
    Last Post: 24th April 2006, 22:44
  5. Replies: 2
    Last Post: 6th January 2006, 22:15

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
  •  
Qt is a trademark of The Qt Company.