[Solved] single signal to multiple slots
-
hello,
How many slots can you connect to a signal?
-
Hi,
It's unlimited, It's just a event queue handled by the QApplication -
but...how?
i only know how to use the connect function.@
QObject::connect(&aObject, SIGNAL(ValueChanged(int)),
&bObject, SLOT(setValue(int)));
@ -
Hi,
And that's right function. You can connect the same signal to as many objects as you want, you just need to write all the connect statement OR if the multiple targets are of the same class use a loop to do the connection.
-
i messed up some parameters.
thread is solved.
:D