Changing DPI scaling size of display make Qt application's font size get rendered bigger

前端 未结 5 1193
滥情空心
滥情空心 2020-12-02 10:20

I have created some GUI application using Qt. My GUI application contains controls like push button and radio button. When I run the application, buttons and fonts inside bu

5条回答
  •  长情又很酷
    2020-12-02 11:13

    Its a workaround.Create a file "qt.conf" . Add these lines to it.

    [Platforms]

    WindowsArguments = dpiawareness=0

    Put this file in the application binary folder.That's all . It will work well but only issue is that the look will not be that crisp. For delivering it to the customer, add this file where you have your dependency files & while creating setup, like normally you run your dependency files , run this same as well.

提交回复
热议问题