[Kde-bindings] How to get the sender object in a SLOT in Qyoto?

Stefano Crocco stefano.crocco at alice.it
Fri May 1 07:52:18 UTC 2009


On Friday 01 May 2009, vronskij wrote:
> |I have two buttons in the window. Both are plugged to the same method.
> |How do I tell between them?
> |For example, I would like to print the text of the button, that was
> | clicked.
> |
> |None of the signals of the QPushButton or the QAbstractButton do send
> |a button object or similar.

I don't know whether Qyoto provides another method to do it, but in C++ you'd 
use the QSignalMapper class to achieve this result.

Stefano




More information about the Kde-bindings mailing list