Results 1 to 3 of 3

Thread: GUI thread and Working thread comunication

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Nov 2006
    Posts
    86
    Thanks
    6
    Thanked 14 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: GUI thread and Working thread comunication

    Well, If you are creating the working thread once you know the parameters, then just pass the parameters to the thread when you create it. So your pseudo code could be like:

    <user clicks on a file>
    Gui thread makes a file properties pane
    gui thread looks at the file to see what properties it has
    <at this point you know what file and what properties it has>
    gui thread creates a worker thread and passes in a pointer to some info that contains details about what file and properties to work on.

    Paul

  2. The following user says thank you to thomaspu for this useful post:

    FasTTo (13th September 2007)

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.