After you create button, you could create connections between button's clikced and slot which you want to do.