[Qt-interest] Removing queued signals from queue

Daniel Albuschat d.albuschat at gmail.com
Fri Feb 6 15:49:38 CET 2009


Hello list,
imagine the following situation:

There are a few signals connected to an object via a QueuedConnection.
Now there's something like a "reset()" function in that object that
invalidates it and whatever signals are still being queued for that object
are invalid and should be removed from the event queue.
After reset() is being called, the object is re-initialized and newly
emitted signals should be dispatched as always.

Is it possible to remove all pending events that correspond to a certain
signal from the current even queue?

The actual situation is a bit more complicated; the event loop that
dispatches the queued events is from a QThread object and that thread needs
to "purge" all currently queued events for a certain signal.

Kind regards,

Daniel Albuschat

-- 
eat(this); // delicious suicide
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090206/303fe3f6/attachment.html 


More information about the Qt-interest-old mailing list