Hi
There are two objects of a class(obj1 , obj2). These objects use same signal and slot like this:
connect(obj1, SIGNAL(sgnl()), SLOT(slt()));
connect(obj2, SIGNAL(sgnl()), SLOT(slt()));
//sgnl and slt are created by myself.
connect(obj1, SIGNAL(sgnl()), SLOT(slt()));
connect(obj2, SIGNAL(sgnl()), SLOT(slt()));
//sgnl and slt are created by myself.
To copy to clipboard, switch view to plain text mode
I need when sgnl() signal is send from obj1, the slt() slot can know this and use obj1 address and also when sgnl() signal is send from obj2, the slt() slot can know this and use obj2 address.
Thanks for any helps.
Bookmarks