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. How to change Qt Creator fonts which look very small
Forum Updated to NodeBB v4.3 + New Features

How to change Qt Creator fonts which look very small

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
8 Posts 2 Posters 2.4k Views 2 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.
  • A Offline
    A Offline
    AlexNevskiy
    wrote on last edited by
    #1

    Hello qt guys!
    I use Qt Creator 12 on OS Windows on laptop with FullHD resolution so it makes the font very small and I want to know how to change the menu and tool panes and panels font?
    For the moment I have the look like this :

    111.png
    222.png
    what is absolutely unreadable for me.

    (The menu font I was able to change with system configs...)

    The option DPI rounding policy has no any effect.

    The simplest stylesheet like that

    QMenu,
    QMenuBar::item ,
    QMenuBar,
    QTreeView,
    QListView,
    QLineEdit, 
    QPushButton,
    QToolButton,
    QComboBox,
    QLabel,
    QGroupBox,
    QCheckBox,
    QSpinBox,
    QDoubleSpinBox,
    QCommandLinkButton,
    QAbstractItemView,
    QHeaderView
    {
        font-size: 13pt;
    }
    

    breaks the codes font size from time to time

    Any suggestions?

    Axel SpoerlA 1 Reply Last reply
    0
    • A AlexNevskiy

      Hello qt guys!
      I use Qt Creator 12 on OS Windows on laptop with FullHD resolution so it makes the font very small and I want to know how to change the menu and tool panes and panels font?
      For the moment I have the look like this :

      111.png
      222.png
      what is absolutely unreadable for me.

      (The menu font I was able to change with system configs...)

      The option DPI rounding policy has no any effect.

      The simplest stylesheet like that

      QMenu,
      QMenuBar::item ,
      QMenuBar,
      QTreeView,
      QListView,
      QLineEdit, 
      QPushButton,
      QToolButton,
      QComboBox,
      QLabel,
      QGroupBox,
      QCheckBox,
      QSpinBox,
      QDoubleSpinBox,
      QCommandLinkButton,
      QAbstractItemView,
      QHeaderView
      {
          font-size: 13pt;
      }
      

      breaks the codes font size from time to time

      Any suggestions?

      Axel SpoerlA Online
      Axel SpoerlA Online
      Axel Spoerl
      Moderators
      wrote on last edited by
      #2

      @AlexNevskiy
      Hi Alex,
      without having tested it on Windows, this is what works for me on Linux.
      Cheers
      Axel

      1. Enable Hi DPI scaling here:

      9f552434-af7d-4b40-8768-7ebda2867f4b-image.png

      1. Set environment variable
        QT_AUTO_SCREEN_SCALE_FACTOR=1
        (you can replace the value 1 with whatever suits you)

      Software Engineer
      The Qt Company, Oslo

      A 1 Reply Last reply
      2
      • Axel SpoerlA Axel Spoerl

        @AlexNevskiy
        Hi Alex,
        without having tested it on Windows, this is what works for me on Linux.
        Cheers
        Axel

        1. Enable Hi DPI scaling here:

        9f552434-af7d-4b40-8768-7ebda2867f4b-image.png

        1. Set environment variable
          QT_AUTO_SCREEN_SCALE_FACTOR=1
          (you can replace the value 1 with whatever suits you)
        A Offline
        A Offline
        AlexNevskiy
        wrote on last edited by AlexNevskiy
        #3

        @Axel-Spoerl Thank you for the answer. No one of your solutions couldn't help me by the way.

        1 In new Creator there is substitution for Enable high DPI scaling mode option .
        1.png
        2.png

        and no one of the items of this menu doesn't have an effect on pane or a menu but makes start screen and options dialog looks kind of ugly
        3.png

        1. I've tried QT_AUTO_SCREEN_SCALE_FACTOR and QT_SCALE_FACTOR different values but I don't know why they have no effect too. In much more older versions I worked with this enviroment variables, it had a small drawback by the way - the running app from Qt Creator had the same scaling option and texts looked large than it should be.
        Axel SpoerlA 1 Reply Last reply
        0
        • A AlexNevskiy

          @Axel-Spoerl Thank you for the answer. No one of your solutions couldn't help me by the way.

          1 In new Creator there is substitution for Enable high DPI scaling mode option .
          1.png
          2.png

          and no one of the items of this menu doesn't have an effect on pane or a menu but makes start screen and options dialog looks kind of ugly
          3.png

          1. I've tried QT_AUTO_SCREEN_SCALE_FACTOR and QT_SCALE_FACTOR different values but I don't know why they have no effect too. In much more older versions I worked with this enviroment variables, it had a small drawback by the way - the running app from Qt Creator had the same scaling option and texts looked large than it should be.
          Axel SpoerlA Online
          Axel SpoerlA Online
          Axel Spoerl
          Moderators
          wrote on last edited by
          #4

          @AlexNevskiy
          Hi Alex,
          let me update to Creator 12 and get back to you.
          Cheers
          Axel

          Software Engineer
          The Qt Company, Oslo

          A 1 Reply Last reply
          0
          • A Offline
            A Offline
            AlexNevskiy
            wrote on last edited by
            #5

            Have found somewhat a solution, changed text size from the Windows -> Settings -> Ease of Access -> Display -> Make Text bigger

            And now it looks more readable

            fff.png

            Of course it can take some unpleasant effect on other programs...

            1 Reply Last reply
            1
            • Axel SpoerlA Axel Spoerl

              @AlexNevskiy
              Hi Alex,
              let me update to Creator 12 and get back to you.
              Cheers
              Axel

              A Offline
              A Offline
              AlexNevskiy
              wrote on last edited by
              #6

              @Axel-Spoerl Ok

              Axel SpoerlA 1 Reply Last reply
              0
              • A AlexNevskiy

                @Axel-Spoerl Ok

                Axel SpoerlA Online
                Axel SpoerlA Online
                Axel Spoerl
                Moderators
                wrote on last edited by
                #7

                @AlexNevskiy
                It looks to me, as if your solution is the only one.
                Creator 12 reacts to high DPI scaling automatically.
                My screen has 3840x2160 and I have blown up my scaling to 125%.
                That works just nice in Creator, as well as in all other apps.
                How that can be achieved in Windows - I don't know.

                Software Engineer
                The Qt Company, Oslo

                A 1 Reply Last reply
                2
                • Axel SpoerlA Axel Spoerl

                  @AlexNevskiy
                  It looks to me, as if your solution is the only one.
                  Creator 12 reacts to high DPI scaling automatically.
                  My screen has 3840x2160 and I have blown up my scaling to 125%.
                  That works just nice in Creator, as well as in all other apps.
                  How that can be achieved in Windows - I don't know.

                  A Offline
                  A Offline
                  AlexNevskiy
                  wrote on last edited by
                  #8

                  @Axel-Spoerl Yes, It looks that way.
                  Well, thanks for the help.

                  1 Reply Last reply
                  0
                  • aha_1980A aha_1980 has marked this topic as solved on
                  • cristian-adamC cristian-adam referenced this topic on

                  • Login

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