Cut Him Off He Will Miss You

1. It will show him your worth Most couples in a close relationship share a profound bond. This connection between partners prompts the arrival of oxytocin, serotonin, and dopamine. Furthermore…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Login Window in Qt

It is a basic login window which takes user name and password as input.

In the main window I used a label for placing the image , two more labels for user name and password,lineEdit for inputs and pushButtons.

I added the login image to the resources for better usage and used a path to specify it. You can use the direct path in your computer without adding the image to the resources.

The push button “login” is connected to a message box object which will inform you if the inputs are correct or incorrect. Default true inputs are both test in this project.

If you enter incorrect input the message box will show you a warning message and close the project after pressing the Ok button.

In other case the message box will show you an information message and after pressing the Ok button the application will create an object of second dialog ui.

In the second window there are one checkbox for approving the terms and policies and two radio buttons for sending information email to your mail address.

Approving the terms is required but others are optional. If you do not approve the terms the message box will show you a critical message which says please approve the terms.

If you approve the terms according to your choice of email, different messages will be shown.

Case 1: Both radio buttons are not selected.

Case 2: I want to get information email.

Case 3: I do not want to get information email.

Additional Part of the Project:

As a basic usage of combobox I added a part to the main window which directs you a different ui. In this window you can see a combobox.

The Codes:

mainwindow.cpp

secdialog.cpp

combobox.cpp

UI:

MainWindow.ui

secdialog.ui

Add a comment

Related posts:

Garden plants with a delicious scent

Think of your garden and the chances are high that you’ll remember what the garden looks like, instead of the scents you associate your garden with. When you think about your garden, you probably…

1 Powerful Secret For Using Video Content To Build Your Brand

As we got a little more sophisticated, advertisements moved to the radio and we would listen to them in-between hearing our favorite music. We took a large step forward technologically with TV…