Starting Qt5 development on Ubuntu 20

To install Qt5 package needed to develop do :

sudo apt install qt5-default

Create a new folder to contain qthello project files.

mkdir qthello

cd qthello

Edit a new file hello.cpp with nano (or other editor).

nano hello.cpp

Create file with qmake.

qmake -project

Edit add QT += widgets.

Run qmake and make.



Execute qthello.



Leave a Reply

Your email address will not be published. Required fields are marked *