View Single Post
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#6
Originally Posted by timconradinc View Post
Going OT, but using lambda functions with buttons like that is a handy technique. There's a lot of times that you just want to use a signal/slot with a clicked() and identify the caller, this is a simple way to work around this.
This is actually originally how I found it . I had multiple buttons I wanted to send unique signals without making separate methods for each. Lambda worked out great for that.

I have read somewhere that using lambda isn't the most efficient though so I usually do point out that it may not be the cleanest method.. but so far it's worked great for me.
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!