[Kde-bindings] How to get the sender object in a SLOT in Qyoto?
vronskij
vronskij at gmail.com
Fri May 1 08:42:22 UTC 2009
Thanks for pointing me to the right direction. This is it.
There is event simpler solution than the QSignalMapper. We can simply
call the QObject::sender() (C++)
method.
[Q_SLOT]
void OnClicked() {
QPushButton sender = (QPushButton) Sender();
Console.WriteLine(sender.Text);
}
This is the solution for Qyoto.
jan bodnar
> | 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