Within the “Slots”, you can insert your code. For example select the “Widget Name” toolbox, click at the button id and insert a BUTTON_EVENT.
In the above example we terminate the current mask and return to pvMain() in order to show a different mask.