Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Raspberry Pi 3 + Qt5.9 = QML application => Texts are not shown

Raspberry Pi 3 + Qt5.9 = QML application => Texts are not shown

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 1.3k Views 1 Watching
  • 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.
  • M Offline
    M Offline
    MHermann
    wrote on last edited by MHermann
    #1

    Hi all!

    I developed a QML application with Qt5.9.
    I build this application for Ubuntu and for Raspberry Pi 3.
    On Ubuntu everything is fine.
    On Raspi 3 everything was fine. Now I have the problem that all the texts of labels, textfields, tables, ... are not shown.
    The images, the borders, the colors, the graphs, ... are shown normally.
    But I get no error messages while compilation and deyployment.
    Does anyone know this problem and the reason for this problem?

    Kind Regards,
    MHermann

    jsulmJ 1 Reply Last reply
    0
    • M MHermann

      Hi all!

      I developed a QML application with Qt5.9.
      I build this application for Ubuntu and for Raspberry Pi 3.
      On Ubuntu everything is fine.
      On Raspi 3 everything was fine. Now I have the problem that all the texts of labels, textfields, tables, ... are not shown.
      The images, the borders, the colors, the graphs, ... are shown normally.
      But I get no error messages while compilation and deyployment.
      Does anyone know this problem and the reason for this problem?

      Kind Regards,
      MHermann

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @MHermann said in Raspberry Pi 3 + QT5.9 = QML application => Texts are not shown:

      On Raspi 3 everything was fine. Now I have the problem

      What did you change?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • tomasz3dkT Offline
        tomasz3dkT Offline
        tomasz3dk
        wrote on last edited by
        #3

        Your Qt for raspberry is probably without fontconfig support. Solutions:

        1. Build Qt with fontconfig support
        2. Use fontloader and set font for every labels, textfields etc...
        1 Reply Last reply
        0
        • M Offline
          M Offline
          MHermann
          wrote on last edited by
          #4

          I found the problem.
          On the Raspi were no fonts (*.ttf) in /usr/local/qt5/lib/fonts.
          After copying the fonts there, it worked and all texts were shown.

          1 Reply Last reply
          2

          • Login

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