Solved DPI problems
-
Hi! My application has issues with high DPI monitors.
I have set
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling, true);
function, but it doesn't work. Some text is not fully visible or is not adaptive to high DPI. On standard 96 DPI (100% scale) everything works normal.
Any suggestions how to fix this issue? Thanks. -
Did you place your texts in layouts ?
-
This post is deleted! -
Yes, I use layouts, but not for all features. I think there should be another approach dealing with high DPI.
-
When you do not use layouts, the text area remains the same under any resolution
and that means that the scaling of font will be clipped as the area is not adjusted.
So if there is not a layout to adjust the actual widget area (client area) then you must do it manually. -
I will try it and reply. Thanks.
-
Thank you. Now the text is fully visible on high DPI monitors.
-
Super. Thank you for reporting back.