[Qt-interest] Multiple SIGNAL connected to single SLOT and sender() function
Sambhav
isambhav at gmail.com
Tue Nov 10 16:45:53 CET 2009
Hi,
I want to connect multiple QPushButton(s) to a single SLOT. In the SLOT it
is required to change the certain properties of the Button. I checked the
documentation and found this under signal and slots page.
*Advanced Signals and Slots Usage*
For cases where you may require information on the sender of the signal, Qt
provides the QObject::sender<https://mail.google.com/mail/html/compose/static_files/qobject.html#sender>()
function, which returns a pointer to the object that sent the signal.
I want to know how to convert the QObject returned by the sender function to
the QPushButton object.
Thanks and Regards,
Sambhav
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091110/2c6bb694/attachment.html
More information about the Qt-interest-old
mailing list