To assist the user of an application, it is often helpful to set input focus to a particular part in the user interface. In our example, the user must enter their social security number to perform a transaction. To set input focus to the Enter SSN entry field when the window is opened, you need to connect the openedWidget event of the window to the setFocus action of the Text part.
Note: | Make sure you select openedWidget, which is an event, and not openWidget, which is an action. |
Your MainWindowView part should now look like this: