Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Barely readable fonts QTCreator (and others)

Barely readable fonts QTCreator (and others)

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
12 Posts 4 Posters 1.5k 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.
  • J Offline
    J Offline
    Jogchum
    wrote on last edited by
    #1

    Hi,

    Just starting with QT, on OpenSuse Tumbleweed. I have 4k screens, on which the menu's from QTCreator etc. are barely readable due to the small font size.
    I tried qtconfig, and changed the font size there, but that has no effect on the font size in QTCreator.

    In qtrc there is a line "font=Sans Serif,10,-1,5,50,0,0,0,0,0"; should I make changes there? And if yes, what should I change it to?
    If not, is there another way to make the QTCreator menus readable without burying my head in the monitor?

    I searched this forum for a solution, but didn't find one...

    Thanks for any help!

    regards, Jogchum

    1 Reply Last reply
    0
    • mzimmersM Offline
      mzimmersM Offline
      mzimmers
      wrote on last edited by
      #2

      If I'm reading your font definition correctly, you're specifying a 10 point font -- sounds pretty small for a 4K screen. Purely as an experiment, try changing the 10 to, say, 48.

      This may fix your issue, but I don't know that it's the best way to address this.

      J 1 Reply Last reply
      0
      • mzimmersM mzimmers

        If I'm reading your font definition correctly, you're specifying a 10 point font -- sounds pretty small for a 4K screen. Purely as an experiment, try changing the 10 to, say, 48.

        This may fix your issue, but I don't know that it's the best way to address this.

        J Offline
        J Offline
        Jogchum
        wrote on last edited by Jogchum
        #3

        @mzimmers Thanks for your reply, and I thought somewhere there should be the place indeed to change the font size. But alas, it doesn't change a thing....

        1 Reply Last reply
        0
        • mzimmersM Offline
          mzimmersM Offline
          mzimmers
          wrote on last edited by
          #4

          I just noticed your mention of qtconfig - what version of Qt and Creator are you using?

          J 1 Reply Last reply
          0
          • mzimmersM mzimmers

            I just noticed your mention of qtconfig - what version of Qt and Creator are you using?

            J Offline
            J Offline
            Jogchum
            wrote on last edited by Jogchum
            #5

            @mzimmers It is Qt Creator 9.0.1, based on Qt 6.4.1.
            The About pop-up says

            Qt Creator 9.0.1
            
            Based on Qt 6.4.1 (GCC 12.2.1 20221020 [revision 0aaef83351473e8f4eb774f8f999bbe87a4866d7], x86_64)
            
            Copyright 2008-2022 The Qt Company Ltd. All rights reserved.
            
            The program is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
            
            The Qt logo as well as Qt®, Qt Quick®, Built with Qt®, Boot to Qt®, Qt Quick Compiler®, Qt Enterprise®, Qt Mobile® and Qt Embedded® are registered trademarks of The Qt Company Ltd.code_text
            
            mzimmersM JoeCFDJ 2 Replies Last reply
            0
            • J Jogchum

              @mzimmers It is Qt Creator 9.0.1, based on Qt 6.4.1.
              The About pop-up says

              Qt Creator 9.0.1
              
              Based on Qt 6.4.1 (GCC 12.2.1 20221020 [revision 0aaef83351473e8f4eb774f8f999bbe87a4866d7], x86_64)
              
              Copyright 2008-2022 The Qt Company Ltd. All rights reserved.
              
              The program is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
              
              The Qt logo as well as Qt®, Qt Quick®, Built with Qt®, Boot to Qt®, Qt Quick Compiler®, Qt Enterprise®, Qt Mobile® and Qt Embedded® are registered trademarks of The Qt Company Ltd.code_text
              
              mzimmersM Offline
              mzimmersM Offline
              mzimmers
              wrote on last edited by
              #6

              @Jogchum I'm sorry, I don't have an answer for you. Qtconfig is a relic from the Qt4 days, so that won't help you here.

              You can change the appearance of the editor contents using preferences, but that's a very incomplete answer. I sort of remember going around this tree myself a few years back. Hopefully someone more knowledgable than I can chime in here.

              J 1 Reply Last reply
              0
              • J Jogchum

                @mzimmers It is Qt Creator 9.0.1, based on Qt 6.4.1.
                The About pop-up says

                Qt Creator 9.0.1
                
                Based on Qt 6.4.1 (GCC 12.2.1 20221020 [revision 0aaef83351473e8f4eb774f8f999bbe87a4866d7], x86_64)
                
                Copyright 2008-2022 The Qt Company Ltd. All rights reserved.
                
                The program is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
                
                The Qt logo as well as Qt®, Qt Quick®, Built with Qt®, Boot to Qt®, Qt Quick Compiler®, Qt Enterprise®, Qt Mobile® and Qt Embedded® are registered trademarks of The Qt Company Ltd.code_text
                
                JoeCFDJ Offline
                JoeCFDJ Offline
                JoeCFD
                wrote on last edited by JoeCFD
                #7

                https://forum.qt.io/topic/93455/how-do-i-change-the-system-font-for-qtcreator/10

                J 1 Reply Last reply
                0
                • mzimmersM mzimmers

                  @Jogchum I'm sorry, I don't have an answer for you. Qtconfig is a relic from the Qt4 days, so that won't help you here.

                  You can change the appearance of the editor contents using preferences, but that's a very incomplete answer. I sort of remember going around this tree myself a few years back. Hopefully someone more knowledgable than I can chime in here.

                  J Offline
                  J Offline
                  Jogchum
                  wrote on last edited by
                  #8

                  @mzimmers OK, thanks anyway for thinking with me!

                  1 Reply Last reply
                  0
                  • JoeCFDJ JoeCFD

                    https://forum.qt.io/topic/93455/how-do-i-change-the-system-font-for-qtcreator/10

                    J Offline
                    J Offline
                    Jogchum
                    wrote on last edited by
                    #9

                    @JoeCFD Thanks for the hint. The workaround offered there is: give

                    --platform windows:dpiawareness=1
                    

                    as an argument to invoking qtcreator)
                    That is meant for the Windows platform.
                    Available platforms in my environment that are presented in my case:

                    Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vkkhrdisplay, vnc, xcb, wayland-egl, wayland.
                    

                    I tried to pass the various platforms, some of which don't activate qtcreator at all, with various eroor messages, some make it crash immediately, some let qtcreator start, but without changing the font size.

                    I understand, from the discussion there, that the problem is long standing....

                    JoeCFDJ 1 Reply Last reply
                    0
                    • J Jogchum

                      @JoeCFD Thanks for the hint. The workaround offered there is: give

                      --platform windows:dpiawareness=1
                      

                      as an argument to invoking qtcreator)
                      That is meant for the Windows platform.
                      Available platforms in my environment that are presented in my case:

                      Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vkkhrdisplay, vnc, xcb, wayland-egl, wayland.
                      

                      I tried to pass the various platforms, some of which don't activate qtcreator at all, with various eroor messages, some make it crash immediately, some let qtcreator start, but without changing the font size.

                      I understand, from the discussion there, that the problem is long standing....

                      JoeCFDJ Offline
                      JoeCFDJ Offline
                      JoeCFD
                      wrote on last edited by JoeCFD
                      #10

                      @Jogchum
                      --platform windows:dpiawareness=1 is documented here.
                      https://doc.qt.io/qt-5/highdpi.html
                      I did not see any doc about Linux. But check out if QT_ENABLE_HIGHDPI_SCALING or QT_AUTO_SCREEN_SCALE_FACTOR helps.

                      J 1 Reply Last reply
                      0
                      • JoeCFDJ JoeCFD

                        @Jogchum
                        --platform windows:dpiawareness=1 is documented here.
                        https://doc.qt.io/qt-5/highdpi.html
                        I did not see any doc about Linux. But check out if QT_ENABLE_HIGHDPI_SCALING or QT_AUTO_SCREEN_SCALE_FACTOR helps.

                        J Offline
                        J Offline
                        Jogchum
                        wrote on last edited by
                        #11

                        @JoeCFD Hi Joe,

                        I did read that already, but concluded that is was for applications built with QT, not for the qt tols themselves.
                        On your suggestion, I gave it a try in the Unix-style, issuing

                        export QT_SCALE_FACTOR=2
                        

                        on the terminal, before launching qtcreator.
                        This works! Thanks a lot, and my apologies that I did not try this myself in the first place!

                        jsulmJ 1 Reply Last reply
                        0
                        • J Jogchum

                          @JoeCFD Hi Joe,

                          I did read that already, but concluded that is was for applications built with QT, not for the qt tols themselves.
                          On your suggestion, I gave it a try in the Unix-style, issuing

                          export QT_SCALE_FACTOR=2
                          

                          on the terminal, before launching qtcreator.
                          This works! Thanks a lot, and my apologies that I did not try this myself in the first place!

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

                          @Jogchum said in Barely readable fonts QTCreator (and others):

                          not for the qt tols themselves

                          QtCreator is written using Qt.

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

                          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