Scale and Font size in Qt Desktop Application?
-
Hi,
In the past, I use Delphi to develop application GUI and it can scale the controls in a Window if the Window size is changed. I just wonder whether Qt support such a feature.
Also if the sytem font size is changed, for example, from 96 DPI to 120 DPI, will all the texts displayed in Qt GUI properly? Currently I cannot build my own Qt program because the settings are not correct yet. So I have to ask questions here.
Thanks
Alan
-
[quote author="chcw" date="1349045422"]In the past, I use Delphi to develop application GUI and it can scale the controls in a Window if the Window size is changed. I just wonder whether Qt support such a feature.
[/quote]
Yes, "layouts":http://qt-project.org/doc/qt-4.8/layout.html[quote]Also if the sytem font size is changed, for example, from 96 DPI to 120 DPI, will all the texts displayed in Qt GUI properly?[/quote]
The preferred size of widgets containing text is driven by the size of the text. This works correctly in the face of Windows' "helpful" scaling features. The layout manager takes preferred sizes into consideration when sizing widgets.[quote]Currently I cannot build my own Qt program because the settings are not correct yet.[/quote]
No idea what that means.