Results 1 to 1 of 1

Thread: How to immediately post an event/signal to another thread

  1. #1
    Join Date
    Aug 2010
    Location
    Germany
    Posts
    54
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to immediately post an event/signal to another thread

    When I emit an event that is destined for another thread it appears that this event is not posted until the current thread returns to the event loop. I need a way to have this event been immediately propagated to the other thread.

    I don't need to use signals to do this. I'm fine with another technique. What first came to mind as a QWaitCondition, but then the target thread can't have a message loop, since there is no way to wait on either the condition or the event loop.


    Added after 55 minutes:


    With some testing it does appear that the signals are immediately posted to the event loop in the other thread. Thus signals are likely a good enough option. The delay I'm experiencing is coming from another QT module (Phonon).
    Last edited by mortoray; 8th December 2010 at 14:33.

Similar Threads

  1. Replies: 2
    Last Post: 29th August 2010, 16:26
  2. QWidget post event
    By bunjee in forum Qt Programming
    Replies: 1
    Last Post: 14th November 2008, 19:07
  3. Request for comment: Post event filter
    By wysota in forum Qt Programming
    Replies: 3
    Last Post: 7th March 2008, 22:55
  4. How to post a key event to another application
    By mitskits in forum Qt Programming
    Replies: 1
    Last Post: 23rd June 2006, 14:09

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.