Ade Malsasa Akbar contact
Senior author, Open Source enthusiast.
Saturday, November 27, 2021 at 15:33

This tutorial explains how someone can setup C++ language and Qt Software Development Kit on Ubuntu 21.10 for doing software development that is world-class, full-featured, complete and crossplatform under free software licenses. For your information, Qt is the material that built professional computing software like Kubuntu, KDE and Telegram. With this tutorial you will get a full set of tools ready to use consisted of an advanced IDE Qt Creator, a GUI editor Qt Designer, a lot of code examples Qt Examples, an internationalization tool Qt Linguist and a documentation viewer Qt Assistant aside from the compiler G++ and the build tool QMake. Let's start!

Subscribe to UbuntuBuzz Telegram Channel to get article updates.

The Goal

We want to install full Qt Software Development Kit that consists of a working set of Qt Creator, Qt Designer, and Qt Linguist as well as its full set of excellent code examples to produce applications with C++ programming language.


Installing Compiler

First, we install the C++ compiler that is GNU G++.
$ sudo apt-get install g++

 

Installing SDK

Second, we install necessary software packages that constitute a full Qt SDK.
$ sudo apt-get install qtbase5-dev qtcreator qtbase5-examples qtbase5-doc-html

Note: in Ubuntu Impish, there is no qt5-default package anymore unlike in the previous versions like Focal and Bionic thus here we change it with qtbase5-dev package instead.


The Result

Once installed properly with command lines above, you will have a working Qt Creator, the integrated development environment, with all examples fully available and its feature called 'Desktop Kits' ready to use. Qt Designer, Qt Linguist, and Qt Assistant should also be working for you.

Happy hacking!


This article is licensed under CC BY-SA 3.0.