beginner question: common slot function for multiple buttons
Zidarics Zoltan
zamek at vili.pmmf.hu
Sun Jan 7 09:02:47 GMT 2007
Andreas Pakulat wrote:
> On 06.01.07 19:36:00, Zidarics Zoltan wrote:
>> 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.
thanks a lot, it works...
bye
Zamek
More information about the KDevelop
mailing list