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.