This form allows the user to enter their name and password, if they are correct, it will display a message to you that they are correct otherwise not.
- open the QT creator software ->Sélectionnez `Application` -> `Qt Widgets Application`.-> new project -> enter the project name"name-projet"
- open Mainwindow.ui ->
- Add the following to the main window:
- -Two `QLabel` for the "Username" and "Password" labels.
- -Two `QLineEdit` for username and password input fields.
- -A `QPushButton` for the login button.
- open file mainwindow.cpp
- #include QMessageBox
- put the code
- Run the code