Results 1 to 17 of 17

Thread: Producer Consumer

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    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

  2. #2
    Join Date
    Jan 2006
    Location
    Sta. Eugènia de Berga (Vic - Barcelona - Spain)
    Posts
    869
    Thanks
    70
    Thanked 59 Times in 57 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Smile Re: Producer Consumer

    Hey,
    I will take a look at it.

    Thank you very much,
    Òscar Llarch i Galán

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.