How it works…

In this example, we select data from the user table that matches the username and password that we inserted into the text fields. If nothing is found, it means we have provided an invalid username or password. Otherwise, obtain the employeeID data from the user account and do another SQL query to look for information from the employee table that matches the employeeID variable. Then, display the data according to the UI of your program.

We must set the widget order in the Edit Tab Order mode so that when the program has started, the first widget that gets focused on is the username line-edit widget. If the user presses the Tab key on the keyboard, the focus should switch to the second widget, which is the password line edit. An incorrect widget order will ruin the user experience and drive away any potential users. Make sure that the echoMode option of the password line edit is set to Password. That setting will hide the actual password inserted into the line edit and replace it with dot symbols for security purposes.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset