Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. GUI App on a RPi 4B Doesn't Display Text Properly
Qt 6.11 is out! See what's new in the release blog

GUI App on a RPi 4B Doesn't Display Text Properly

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 1 Posters 383 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kynosis
    wrote on last edited by
    #1

    The Setup:

    1. RPi 4B with the latest RPi lite OS from their Raspberry Pi Imager app.
    2. Grabbed a bunch of dependencies via apt for the Qt library and for EGLFS windowing system
    3. Compiled qtbase-everywhere-src-6.4.2 natively on the RPi from Qt 6.4.2 official release via CMake
    4. 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.
    App on Windows
    5) Compiled the app on the RPi via CMake and created an executable

    The Issue
    When I run the application on the RPi via command line

    ./qt6-target-app -platform eglfs
    

    the "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!

    K 1 Reply Last reply
    0
    • K Kynosis

      The Setup:

      1. RPi 4B with the latest RPi lite OS from their Raspberry Pi Imager app.
      2. Grabbed a bunch of dependencies via apt for the Qt library and for EGLFS windowing system
      3. Compiled qtbase-everywhere-src-6.4.2 natively on the RPi from Qt 6.4.2 official release via CMake
      4. 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.
      App on Windows
      5) Compiled the app on the RPi via CMake and created an executable

      The Issue
      When I run the application on the RPi via command line

      ./qt6-target-app -platform eglfs
      

      the "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!

      K Offline
      K Offline
      Kynosis
      wrote on last edited by Kynosis
      #2

      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.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved