Before we write any programs inside QT5, we first need to set it up so that it can run C++ programs. To open QT5, click on the raspberry icon, go to Programming, then select the Qt Creator:
QT5 runs a bit slower in RPi, so it will take some time for the IDE to open. Click on Tools and then select Options...:
Inside Options..., click on Devices and make sure the Type is set to Desktop. The name should be Local PC, which refers to the RPi:
After that, click on the Build & Run option. Next, select the Kits tab and click on the ...