[Interest] QtCreator with very high resolution laptops
Allan Sandfeld Jensen
kde at carewolf.com
Sat Mar 14 15:11:33 CET 2015
On Saturday 14 March 2015, Etienne Sandré-Chardonnal wrote:
> Hi Allan,
> Where can I set the DPI? In the API?
> Thanks
>
No, it is in the Windows own screen settings somewhere. I can't remember where
in Windows 7 though, should be easy to find though. In XP it was with the
advanced screen settings, and in Windows 8 it is with the other scaling
options if I remember correctly.
Qt reads the system DPI and scales the fonts to it, and since 5.4 also scales
parts of the widget style to match the font size. The reason the device pixel
ratio only scaled everything except text is because Qt was already scaling the
text to system settings.
Best regards
`Allan
More information about the Interest
mailing list