Results 1 to 17 of 17

Thread: Producer Consumer

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #16
    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: Producer Consumer

    Quote Originally Posted by ^NyAw^ View Post
    The code of the Widget is executed by the Consumer Thread. It Process the image, take the result image and display it.
    And that's the problem. Only the main thread (a.k.a. the GUI thread) can touch the GUI. Better send those QImages through a queued connection to the GUI thread and let it handle them.

    Also read this carefully: http://doc.trolltech.com/4.2/threads.html
    Last edited by jacek; 17th November 2006 at 20:04. Reason: spelling error

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.