[Qt-interest] Can't post a user event from compute thread to GUI thread
Andre Somers
andre at familiesomers.nl
Tue Nov 10 12:52:09 CET 2009
Moinier, Pierre (UK) wrote:
> Hi!
>
> I am trying to figure out how to send an event fom a thread to the
> main visualisation thread using postEvent, installEventFilter and
> eventFilter.
> I am pasting parts of the test code I am using, which compiles, but
> somehow, the event is probably not reaching the filter, beause I am
> not geting any messages from eventFilter.
>
> Could anyone tell me what I am doing wrong?
>
> Regards,
>
>
Without having looked at your code yet:
is there any reason why you are not using signals and slots here? They
work just fine between threads, and use the eventloop internally anyway
if they are across threads...
André
More information about the Qt-interest-old
mailing list