Why does the text change its size?
-
Hello everyone,
I would like to ask for help for an unusual fact. On some PCs the text is displayed too large. Anyone know the reason for this?For example, in this image the text is displayed correctly.
In this image, however, the text is too large and is not displayed in full because it leaves the edges of the QLabel
Why is this happening?
I use Qt Creator 4.11 on 64 bit Windows.
Thank you all. -
@Stefano84 Do you use layouts?
-
Hi
Also be aware of DPI scaling which can also result in such situations.
https://doc.qt.io/qt-5.12/highdpi.html -
This post is deleted! -
Hi jsulm,
thanks for your time.
No, I haven't used layouts. How you do it? The text is inside a QLabel. Can you give me an example of code?Thanks so much.
-
@Stefano84 Please take a look at documentation: https://doc.qt.io/qt-5/layout.html
There are also examples. -
Thanks,
I did as you said but it doesn't work. I solved it by creating a configuration file "qt.conf" where I inserted the following lines:[Platforms]
WindowsArguments = dpiawareness=0How do I mark that I solved it?