beginner question: common slot function for multiple buttons

Andreas Pakulat apaku at gmx.de
Sun Jan 7 01:04:42 GMT 2007


On 06.01.07 19:36:00, Zidarics Zoltan wrote:
> Hello All,
> 
> I am new in KDE. I would like to make a number keyboard for a touch screen
> application. 
> I need to assign one slot to handle all of button click (0-9):
> 
> void Cleaner::btnNumberClick() {
>         passWd.append("");
> }
> 
> How can I know what is the sender button, to append value of button to
> passwd string?

You can use QSignalMapper for that.

Andreas

-- 
You now have Asian Flu.




More information about the KDevelop mailing list