Why do text items have different results on the screen?
-
@Pada_ said in Why do text items have different results on the screen?:
Can I check the result of the same shape in development environment with different resolution?
IMHO no
you can ensure the final aspect is the same on any screen by using techniques from the link -
@LeLev
I don't know what it means.
Even if you use setPixelSize, you cannot see the same result depending on the resolution.
Are you saying?
Then the size of the 300x300 item, the size of the inner text 20
Will it have to be different for every resolution? -
@LeLev
@sierdzioQTextEdit is the same size as the photo, and Font is the same size.
The first picture is a capture picture on Linux.
The second picture is a capture picture in Windows.
Why does QTextEdit and QFont Size change strangely in WIndows? I have a scroll bar. -
Why does QTextEdit and QFont Size change strangely in WIndows? I have a scroll bar.
You are using different fonts (notice that letter "t" has different shape, for example), so they can have different sizes.
Plus, as I mentioned, you very probably have DPI or font scaling enabled on Windows. As far as I know Windows used 150% scaling by default on most screen sizes nowadays.
-
I haven't looked for upscaling yet,
I think it can be done because of upscaling, as it works well on Linux OS and comes out large on other resolutions of Windows.But why does Windows control upscaling?
Also, is there a way to get the upscaling currently applied to Windows?Windows uses 150% by default, so
Can I create it by reducing 150%?
-
Hi
You can try disable DPI scale for your app and see if that works the way you want.
https://doc.qt.io/qt-5/highdpi.htmlThe text factor used by Windows is controlled by the user and an app should not change that.
(unless its just for your systems and you can just change it )