Qt5 C++ First Console Application

In this Qt5 C++ article i want to show you creating of First Console Application. So before this

if you want to get information about Qt5 C++ installation you can check the below link.

 

 

 

 

 

 

So first of all you need to create a new project in Qt5 C++

Qt5 Project
Qt5 Project

 

 

 

 

 

 

After that click on next and give a name to your project. also you can choose the location

of the Project.

Qt5
Qt5

 

 

 

 

 

After that click on next button and finish your project. you don’t need to

bring changes in here 

Qt5 C++
Qt5 C++

 

 

 

 

 

So after that you can see this is the code, the codes is created automatically by Qt5 framework.

 

 

If your familiar with C++ language, this code is similar to C++ language. you can see that we

have our main function and also we have a QCoreApplication, and like C++ for printing of the 

text on the screen we are using cout, in here also we are using qDebug() function for printing

text in the console.

 

 

 

 

 

 

Run the complete code and you will see this result on the screen. 

Qt5 C++ First Console Application
Qt5 C++ First Console Application

 

 

 

 

 

 

Also you can watch the complete video for this article 

Subscribe and Get Free Video Courses & Articles in your Email

 

Codeloop
Share via
Copy link
Powered by Social Snap
×