To add action to the button, select it on the application designer (1), go to the options of the widget, and then add the action by using add action button(2). Selecting the type of an action is possible by clicking on the drop-down list (3), to remove an action click delete button (4).