Skip to main content
Embedded Software - Qt on the Raspberry Pi 4 a computer screen shot of a blue screen

Qt on the Raspberry Pi 4

Qt on the Raspberry Pi 4

This is a guide for installing Raspberry Pi OS Lite on the Compute Module 4. As a work computer, I use Ubuntu 20, installed in a virtual machine.

This is a guide for cross-compiling Qt 5.15.2 for Raspberry Pi 4 and installing it on the Compute Module 4.
It's an update to my blog post Qt on the Raspberry Pi 4, with the difference that this time I'm using Raspberry Pi OS Lite.

This is a guide for configuring the Qt-Creator to use cross-compiled Qt libraries for the Raspberry Pi 4 and to create applications for the Raspberry.

Embedded Software - Yocto boot raspberry to Qt application a screenshot of a computer
Embedded Software - Qt cross compile setup scripts for Raspberry Pi 4 a screenshot of a computer program

In this blog, I would like to provide a small Qt Quick application (qml) as an example of a Modbus connection over TCP/IP.
In the Qt examples, I have only found QWidget examples for Modbus connections, and after recently creating a Qt Quick application for this, I would like to provide a slimmed-down version of it as an example.

If you have created a Qt application - or any other application - for the Raspberry Pi 4, you often want the application to be called immediately after restarting the Raspberry after the application has been completed.
This is often attempted with start scripts that can be entered in various places.
However, it is more reasonable to set this up via systemd .

The task was to write a Qt Quick application (GUI) to upload new firmware to a touch controller.
The upload software was provided by the manufacturer in a .exe application that loads a .bin file onto the touch controller.
I wanted to use the Qt classes "QProcess", which can be used to call and control shell applications. On the Linux side, I had already used this successfully several times - but on Windows it didn't work at first.