Sending signals to all but one receiver
I have here a strange task to do / a strange problem to solve:
I have objects which store a value (basicly a QVariant combined with QObjec=
called Parameter and objects that are a gui for the parameters called=20
Both have signals and slots to set and change the value, which are connecte=
in a direct circle. In a non-threading environment I block receiving the sl=
if it is already running with a simple boolean. That works great.
But with multiple threads the slots aren't directly called but at the=20
eventloop of their thread. This circumvents the boolean-protection and=20
reestablishes the circular updating which block the app.
What to do?
=2D Releasing the lock with a QTimer is either to fast or makes the app slo=
=2D Using Qt::DirectConnection results in even stranger errors because now =
updating of the gui is called in non-gui-threads.
Is there a way of sending signals to all receivers but one? The one would b=
the receiver that called the slot.
I can even get to know the address of the sender, but then I would need to=
know the signal of the sender to disconnect it, send the own signals and=20
reconnect it later on. Is there a way to do this?
Get my public-key from pgp.mit.edu or pgp.uni-mainz.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
-----END PGP SIGNATURE-----
Content-Type: text/plain; charset="us-ascii"
>> Visit [url]http://mail.kde.org/mailman/listinfo/kde-devel#unsub[/url] to unsubscribe <<[/color][/color]