PDA

View Full Version : problem with toolbox



wagmare
28th November 2008, 09:27
hi friends/experts,
i am connecting a single SLOT for four toolbox CLICKED( ) signal

and in the slot i want to change the value corresponding to the button clicked

how can i found out the current button clicked() or which button emits the signal clicked in the slot

aamer4yu
28th November 2008, 09:52
U can use QObject::sender()
something in the slot like -
if(sender() == button1)
...
else if(sender() == button2)
...

ans so on ..