Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to fix scaling issue in Qt desktop application.
I have developed a desktop application using Qt creator.
I am working in Windows 10. Qt creator 4.9.0. Qt library 5.12.2.
With default resolution and scaling (100%) ,widget alignments are good. If I change scale to 125, 150..% widgets alignments getting collapsed. Font size are getting increased. How to fix this issue.
Are you using layouts to manage your widget positions ?
Are you mean the vertical/horizontal/grid/form layout?
Yes. I'm using the grid layout to place widgets in some positions.
For some widgets, I'm not using any layouts for its arrangements. Example,
For some widgets, I'm using layouts foe its arrangements. Example,
Widget's text size are getting increased when I change the window 10's Setting >> Display >> scale and layout >> 125%
Collapsed outputs are like this,
For some widgets, I'm not using any layouts for its arrangements.
You should use layouts for all your widgets.
I placed all my widgets in separate layout (vertical layout ). After I changed the scaling percentage, the same issue occurred. Widget's size remained same but font size of widgets increased. Should I need to do any additional setting with layouts?
yijia last edited by
Do you run it on a 2K screen？