PDA

View Full Version : Single slot for multiple list boxes



Sheetal
15th April 2008, 06:49
Hi,

I have multiple List boxes in my application. Each for a different functionality provider ( list of providers present in the application )

Is it possible to write a single slot for all the list boxes ? Is there any way to identify in which list box the user has made the selection ?

Right now I have different slot for each list box selection. But the code in all the slots is same except for one macro which identifies the list box.


Thanks & regards,
Sheetal

Lykurg
15th April 2008, 06:53
Hi,

have a look at QObject::sender().

Lykurg