Results 1 to 20 of 27

Thread: Thread freezing GUI

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #7
    Join Date
    May 2007
    Posts
    90
    Thanks
    40
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Thread freezing GUI

    Basically the program works like this:

    Main GUI just asks how many instances.

    Each sub widget has controls to find network information.

    The sub-widget creates a worker thread.

    This thred creates 2 sub threads, sub thread 2 is connected (in the run method) to the DoThis widget and sub thread 1 is connected to sub thread 2

    Sub Thread 1. Looks at the network and handles transmissions (parsing)and funnels commands to thread 2

    Sub Thread 2. When commands are received it looks at the hard drive and finds the appropriate file. When found it emits a signal grabbed by the DoThis Widget.

    The DoThis widget then creates its own thread and transmits the data.

    The only time that the GUI hangs is when thread 2 is looking at the hard drive.

    At no other point does the GUI hang (not even during network traffic or the DoThis widgets transmission)

    Thank you for the help, sorry I can't show code.
    Last edited by TheGrimace; 30th May 2007 at 21:57. Reason: reformatted to look better

Similar Threads

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