Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

QT Creator:how to change the menu font size?

Tags:

qt

qt-creator

qt5

I use QT Creator on surface pro4 and the font of menu is too small: enter image description here

what should i do to change the font size?

version:5.5

like image 304
YiQi Chen Avatar asked Mar 29 '17 14:03

YiQi Chen


2 Answers

There is no such option. You have to modify the DPI scaling of windows, which will make all "legacy" shell applications appear larger to compensate for the high DPI of the device.

If you don't want to modify the settings, you might want to try running creator with an QT_SCALE_FACTOR=2 env var or so.

Create a startScaled.cmd in creator's exe directory with the content:

@echo off 
set QT_SCALE_FACTOR=2
qtcreator.exe

And use this to start creator up-scaled.

like image 118
dtech Avatar answered Sep 17 '22 19:09

dtech


On linux mint for me, changing the desktop DPI scaling doesn't help with QT sidebar font in particular although most other things do scale.

The scale factor variable method does work though. Here's the script I used and just modify the installed menu shortcut for QtCreator to run it instead of directly running the qtcreator executable:

   #!/bin/bash
   #my_qtcreator.sh
   export QT_SCALE_FACTOR=1.5
   /opt/Qt/qtcreator-4.2.2/bin/qtcreator
like image 45
peter karasev Avatar answered Sep 19 '22 19:09

peter karasev