How to change Qt Creator fonts which look very small
-
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 :
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?
-
@AlexNevskiy
Hi Alex,
without having tested it on Windows, this is what works for me on Linux.
Cheers
Axel- Enable Hi DPI scaling here:
- Set environment variable
QT_AUTO_SCREEN_SCALE_FACTOR=1
(you can replace the value 1 with whatever suits you)
-
@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 .
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
- 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.
-
@AlexNevskiy
Hi Alex,
let me update to Creator 12 and get back to you.
Cheers
Axel -
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
Of course it can take some unpleasant effect on other programs...
-
@Axel-Spoerl Ok
-
@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. -
@Axel-Spoerl Yes, It looks that way.
Well, thanks for the help. -