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. Text formatting problem on embedded system
Forum Update on Monday, May 27th 2025

Text formatting problem on embedded system

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 4 Posters 251 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.
  • S Offline
    S Offline
    sbartolett
    wrote on 19 Apr 2021, 18:58 last edited by
    #1

    We are developing a GUI application using Visual Studios 2017 and Qt 5.12 on windows 10 and targetting a Raspberry Pi. We design a UI using Qt Creator and if we run the application from Visual Studios, the dialog displays as expected. However if we deploy the application on the Raspberry Pi and run it there, the text font size appears to change causing problems with the text formatting. The problem seems to be similiar to the one described here: https://www.raspberrypi.org/forums/viewtopic.php?t=203251#p1262570. But we have not been able to find a good solution to this problem other than trying to compensating for the problem in the design of the dialog in Qt Creator. Does anyone know a better solution?

    We are using Qt 5.12, Visual GDB, Linux toolchain GCC 8.3.0, GDB 8.2.1.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 19 Apr 2021, 19:36 last edited by
      #2

      Hi,

      Can you show what you get ?
      Are you doing anything special with these font(s) ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • J Offline
        J Offline
        JoeCFD
        wrote on 20 Apr 2021, 17:03 last edited by JoeCFD
        #3

        Could be the case that the font family is changed.
        Rescale your label sizes to fit the new font size. Or change the font size to fit your label sizes

        1 Reply Last reply
        0
        • N Offline
          N Offline
          nagesh
          wrote on 21 Apr 2021, 00:14 last edited by
          #4

          @sbartolett I have faced the similar issue, reason turns out to be the font that set for the GUI widget will not be available in the target environment.
          Either make the required fonts to be available in the target system or
          set the fonts which are currently available in the target

          1 Reply Last reply
          2

          1/4

          19 Apr 2021, 18:58

          • Login

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