In this article, we will first describe how to install the Qt Creator through the command line. Then, we will explain how to write a simple Qt Hello World program and run it through the Command line and the Qt Compiler GUI. We have run the commands and procedures mentioned in this article on a Ubuntu 18.04 LTS system.
Source: LXer – Compiling your first Qt Program in Ubuntu