Python Forum
Scaling text QLabel following display mode windows '100%, 125% ...)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scaling text QLabel following display mode windows '100%, 125% ...)
#1
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
Reply
#2
(Jul-07-2021, 03:56 PM)VIGNEAUD Wrote: So I set a font for these labels ...

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


Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tkinter] scaling DPaul 7 3,387 Jun-24-2022, 02:22 PM
Last Post: DPaul
  [Tkinter] Text widget inert mode on and off rfresh737 5 3,864 Apr-19-2021, 02:18 PM
Last Post: joe_momma
Question [PyQt] CSS Styling for a QLabel inside a QListWidget Alfalfa 2 5,143 Nov-30-2020, 02:59 AM
Last Post: Alfalfa
  Display text 3 words at a time algae 5 2,751 Jun-27-2020, 10:25 AM
Last Post: menator01
  Display MySQL data in QLlineEdit text boxes JayCee 1 4,111 Mar-26-2020, 03:55 PM
Last Post: JayCee
  Tkinter scaling windows conten to or with its size not working Detzi 5 4,455 Jan-12-2020, 12:42 PM
Last Post: Detzi
  [Tkinter] adapt management grid mode to management pack mode atlass218 4 3,099 Apr-24-2019, 11:04 AM
Last Post: atlass218
  Display and update the label text which display the serial value jenkins43 5 9,070 Feb-04-2019, 04:36 AM
Last Post: Larz60+
  Display more than one button in GUI to display MPU6000 Sensor readings barry76 4 3,885 Jan-05-2019, 01:48 PM
Last Post: wuf
  [Tkinter] Ignore windows scaling in tkinter Gangwick 2 4,453 Jul-23-2018, 02:41 PM
Last Post: Gangwick

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020