Ade Malsasa Akbar contact
Senior author, Open Source enthusiast.
Friday, November 8, 2019 at 14:32


Qt Software Development Kit (Qt SDK) includes Qt Creator IDE & Qt Framework Libraries with Full Code Examples among other things. On Ubuntu 19.10, if you want to develop GUI applications with Qt, you need to install that Qt SDK first with a C++ compiler. Installing it on 19.10 is slightly different to different to 18.04 as this involves configuring GNU GCC C++ compiler on 19.10. After setup, you will have a ready, complete Qt SDK with Creator, Designer, Linguist, and Assistant works with G++ compiler. I hope this will be useful for you all. Happy hacking!

 
 (Qt Creator works perfectly on Ubuntu 19.10)
Subscribe to UbuntuBuzz Telegram Channel to get article updates directly.



Install Compiler


The compiler is called g++:

$ sudo apt-get install g++ 

Install Qt SDK


This is the complete Qt with all tools and source code examples:
$ sudo apt-get install qt5-default qtcreator qtbase5-examples qtbase5-doc-html

Configure Qt Creator


  • Go to Tools > Options.
  • Go to Kits > Kits tab > select Manual, Desktop kits > see section Compile: > see C++ > change the selection from Clang to GCC C++ 64-bit.
  • OK.



Test


After all steps above you should be able to do everything with Qt programming like below.

Testing the examples:
All source code examples should be visible at main page.



Testing the tutorials:
Same as code examples, all tutorials should be visible as well at main page.



Testing build code examples:
Just pick an example from a lot of examples available and then build (Ctrl+R, or green '>' button). It should be successfully compiled. See example below. Until this point, Qt SDK is ready for you to start coding. Enjoy!


Happy hacking!



This article is licensed under CC BY-SA 3.0.