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:
![](/api/v2/epubs/9781838988470/files/assets/a35a1ce3-4efe-436f-9082-068d9263932a.png)
- Select the pressed() event or signal from the pushButton (QPushButton) tab and the ...