Initially, the form is in widget editing mode, and to apply signal and slot connections, you need to first switch to signals and slots editing mode:
- Select the Edit Signals/Slots icon from the toolbar to switch to signals and slots editing mode.
- On the form, select the push button, drag the mouse to the Line Edit widget, and release the mouse button. The Configure Connection dialog will pop up, allowing you to establish a signal and slot connection between the Push Button and the Line Edit widgets, as shown in the following screenshot:
- Select the pressed() event or signal from the pushButton (QPushButton) tab and the ...