GUI App on a RPi 4B Doesn't Display Text Properly
-
The Setup:
- RPi 4B with the latest RPi lite OS from their Raspberry Pi Imager app.
- Grabbed a bunch of dependencies via apt for the Qt library and for EGLFS windowing system
- Compiled qtbase-everywhere-src-6.4.2 natively on the RPi from Qt 6.4.2 official release via CMake
- Created a simple 'hello-world" GUI app (called qt6-target-app) in QtCreator (see picture attachment below)
What the app looks like on a desktop machine.

5) Compiled the app on the RPi via CMake and created an executableThe Issue
When I run the application on the RPi via command line./qt6-target-app -platform eglfsthe "PushButton", "TextLabel", "RadioButton", and "CheckBox" text basically are populated with a bunch of square boxes -- "□□□□□". I'm not sure what's going on.
Do I need to apt or apt-get some dependencies, because I'm missing something? Am I missing some Qt modules at all?
Any help would be appreciated!
-
The Setup:
- RPi 4B with the latest RPi lite OS from their Raspberry Pi Imager app.
- Grabbed a bunch of dependencies via apt for the Qt library and for EGLFS windowing system
- Compiled qtbase-everywhere-src-6.4.2 natively on the RPi from Qt 6.4.2 official release via CMake
- Created a simple 'hello-world" GUI app (called qt6-target-app) in QtCreator (see picture attachment below)
What the app looks like on a desktop machine.

5) Compiled the app on the RPi via CMake and created an executableThe Issue
When I run the application on the RPi via command line./qt6-target-app -platform eglfsthe "PushButton", "TextLabel", "RadioButton", and "CheckBox" text basically are populated with a bunch of square boxes -- "□□□□□". I'm not sure what's going on.
Do I need to apt or apt-get some dependencies, because I'm missing something? Am I missing some Qt modules at all?
Any help would be appreciated!
I solved the issue but...
Because QtCreator uses Segoe UI as default, I found a .ttf (truetype font) file online called "segoeui.ttf" and downloaded it. Then a placed it in the compiled qt6 library and the path that I placed it in 'qt6/lib/fonts' directory. Then I ran my app again and it worked.
However I'm getting a side effect were the fonts are initialized too big and the text gets cutoff in the UI buttons.