7 C
Texas
angeloma
Senior Writer and partner

Install QTCreator on Ubuntu 20.04 / 18.04

Linux is perhaps the best operating system for the development of applications for its stability and price. Let’s say that many developers who start their adventure in programming, require quality applications but also free. With this in mind, Ubuntu in its repositories has many applications to develop on different platforms and with numerous language support. Some of them already veterans like Fortran, Java, C++; or newer ones like V, Python, PHP, Go, or Rust. However, many of these applications require graphical components and in Linux, QT is one of the most respected. In fact, Plasma and its applications are built with Qt. With the goal of creating fabulous applications with QT, is that in this post, I will teach you how to install QTCreator in Ubuntu 20.04 / 18.04. Also, add some small configurations so you can start as soon as possible.

QTCreator a perfect IDE for QT

QT is a framework of libraries to make graphical user interfaces. It is thought in the beauty and uniformity of the elements, as well as in the correct execution of the same ones. Many large applications use QT, such as the Plasma desktop environment and its applications. But also, applications known as VLC use it.

There is no better way to take advantage of QT than by using QTCreator. QTCreator is a lightweight, open-source framework that integrates seamlessly with many QT developer needs. It is also designed to make C++ development of the Qt application faster and easier. It has many features you have to look.

Since its conception, QTCreator does not intend to rival other IDEs like Eclipse or Netbeans, but on the contrary to serve as a gateway to QT development.

- Advertisement -

QTCreator is related to C++ development but supports other programming languages such as Python and C#.

So let’s start installing QTCreator on Ubuntu.

Install QTCreator on Ubuntu 20.04 / 18.04

Basically, there are two ways to install QTCreator on Ubuntu 20.04/ 18.04. The first is through the main distribution repositories. If we want to develop calmly sacrificing a little the new features of each version, the ideal is to choose this method.

So, open a terminal and run the following:

:~$ sudo apt install qtcreator

Of course, that is the only way to install the IDE, but if we do not install the necessary libraries and compilers, it will not do us any good. So, install them.

:~$ sudo apt install build-essential

If you have multiple versions of Qt, you probably want 5 to be the default QTCreator version to use. To do this, install the following package.

:~$ sudo apt install qt5-default

Then we can begin to develop. However, it is convenient to install the QT documentation and its examples to help the development.

:~$ sudo apt install qt5-doc qt5-doc-html qtbase5-doc-html qtbase5-examples

Now you can start QTCreator and start working.

On the contrary, if you want a more updated version of QTCreator or QT. Go to the QT website and download the online installer.

Once downloaded, assign it execution permission and execute it by double-clicking on it.

:~$ chmod +x [file_path]

Just follow the instruction and then, you will have to choose what to install.

1.- Install QTCreator on Ubuntu using the online installer
1.- Install QTCreator on Ubuntu using the online installer

After configuring other small things like the installation location, you can start the download process.

2.- Installing QTCreator
2.- Installing QTCreator

Finally, launch it.

Conclusion

QT is a great graphic library for your modern applications. But behind a great library, there is a great IDE. In this case, QTCreator is quite good and ideal for developing applications that use QT. And in this post, you have learned how to install it.

Please share this post with your friends.

- Advertisement -
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

6 COMMENTS

  1. Hello!

    I’m trying to do this, but it’s not working. I get an error “use of undeclared identifier ‘NULL'” within the the editor but it compiles perfectly fine. Do you know what I can do to fix this? Here are my steps. I switched the order a bit since it didn’t work the first time when I followed what you wrote precisely.

    1. Install ubuntu-20.04.2-desktop-amd64.iso on a VirtualBox machine.
    2. sudo apt update && sudo apt upgrade
    3. sudo apt install build-essential
    4. sudo apt install qt5-default
    5. sudo apt install qtcreator
    6. Start qtcreator, new project >> Non-Qt Project >> Plain C Application
    7. in main(), add “int * x = NULL;”

  2. Hello!

    For me it shows “no installation candidate for qt5-default exists” (or similar) -even following the 7-step guide above. How can one avoid that?

    Thanks in advance!

LEAVE A REPLY

Please enter your comment!
Please enter your name here



Latest article