QT Creator:如何更改菜单字体大小? [英] QT Creator:how to change the menu font size?

查看:437
本文介绍了QT Creator:如何更改菜单字体大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在surface pro4上使用QT Creator,菜单字体太小:

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

我应该怎么做才能改变字体大小?

what should i do to change the font size?

版本:5.5

推荐答案

没有这样的选项.你必须修改DPI缩放窗口,这将使所有遗留"shell 应用程序看起来更大,以补偿设备的高 DPI.

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.

如果您不想修改设置,您可能想尝试使用 QT_SCALE_FACTOR=2 env var 左右运行创建者.

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.

在creator的exe目录下创建一个startScaled.cmd,内容如下:

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.

这篇关于QT Creator:如何更改菜单字体大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆