Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to reset the size of the Qt's window font?

Tags:

windows-10

qt

I have left my computer on overnight and in the morning I have noticed, that the font of the windows in QtCreator is significantly bigger as it was, though not everywhere. The text editor, the menu and the side panels are shown with the usual font size (see the first screenshot). I have also noticed, that this change affects other Qt programs, as the Maintenance tool and QtLinguist.

Legend: Red - huge font, should be reset. Green - font is as it should be.

QtCreator

QtCreator Settings

Qt Maintenance tool

QtLinguist

The font size of all other installed programs is unchanged. Just in case I have checked the display settings of Windows and the scale is at 100%, where it was.

Note: I have tried deleting the settings under user/AppData..., but it didn't help.

How to reset the font back to normal?

like image 654
scopchanov Avatar asked Oct 17 '25 16:10

scopchanov


1 Answers

for changing the size of the font in the source code you can use the short cuts (with the editor focused)

to zoom in: "ctrl" and "+"

to zoom out: "ctrl" and "-"


for the environment the you can set the environment variable

export QT_SCALE_FACTOR=1.5
like image 51
ΦXocę 웃 Пepeúpa ツ Avatar answered Oct 20 '25 16:10

ΦXocę 웃 Пepeúpa ツ