How to Create Your First Qt Program on Ubuntu Linux
How to Create Your First Qt Program on Ubuntu Linux
If you're just getting started with the QT software development kit, you've come to the right place. We'll show you how to write a simple Hello World program using the QT SDK on Ubuntu Linux.
Steps

For this exercise we are going to open up a terminal on Ubuntu Linux and issue the following command which will create the main directory for a Qt program. Type/Copy/Paste: mkdir QtHelloWorld

Change into your QtHelloWorld directory by issuing the following command Type/Copy/Paste: cd QtHelloWorld This is very important to make sure you are in the correct directory when creating your Qt program.

While we are in the QtHelloWorld directory, we are going to create our Qt Program source code file Type/Copy/Paste: nano main.cpp or Type/Copy/Paste: gedit main.cpp This command will create the main.cpp file for the Qt program

Now add the following lines in the code box below to your main.cpp source code file.

Original news source

What's your reaction?

Comments

https://popochek.com/assets/images/user-avatar-s.jpg

0 comment

Write the first comment for this!