Python Forum

Full Version: Scaling text QLabel following display mode windows '100%, 125% ...)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello

I developed (I'm starting) a small application in python with qlabel (qt) widget objects.

So I set a font for these labels but when I switch to a higher zoom level (from 100% to 125%) in the Windows setting screen, the text is truncated because the label is not long enough (each Qlabel is followed by a QLineEdit widget and so I can't put too much length).

A lead to give me to solve this problem.

Thank you all.

JM
(Jul-07-2021, 03:56 PM)VIGNEAUD Wrote: [ -> ]So I set a font for these labels ...

A font or a font with size?
This is a Qt question, not a Python question. You will have better luck getting an answer on a Qt forum.