If you are talking about Qt Widgets Application:
You have to right click on the button, press Go to slot, and create your function, action, or whatever you want.
You can use Signals/Slots
too, when a button is clicked, send and signal to a slot (
theoretically).
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…