Results 1 to 3 of 3

Thread: Problems with text height in QLabel in windows

  1. #1
    Join Date
    Oct 2009
    Posts
    12
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Problems with text height in QLabel in windows

    Hi,

    I have some QLabels which are displayed at a widget. It looks normally fine. Unfortunatly it is possible to scale the fonts in windows.
    I work normally with 100% font size. If i test the same program with 125% the lables doesn't scale correctly the height. Som at the bottom is clipped as you can see in the pictures below.
    About125.pngAboutNormal.png
    May somebody know a solution for this problem?

    Thanks
    Heiko

  2. #2
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,536
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problems with text height in QLabel in windows

    I don't think that a problem is a font scaling. Show us definition of this panel (min/max sizes, layoouts etc).

  3. #3
    Join Date
    Oct 2009
    Posts
    12
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Problems with text height in QLabel in windows

    You be right. The problem was in the size settings of the parent widget (maximum height was set). Really stupid thing.

    Thanks
    Heiko

Similar Threads

  1. QTextEdit' height should adapt to the text size
    By Qiieha in forum Qt Programming
    Replies: 1
    Last Post: 29th October 2011, 08:34
  2. QLABEL how to Set Line Height?
    By lamp in forum Qt Programming
    Replies: 2
    Last Post: 8th November 2010, 12:22
  3. problems with getting height and width of widget
    By martinn in forum Qt Programming
    Replies: 3
    Last Post: 10th March 2010, 03:04
  4. Replies: 1
    Last Post: 23rd January 2010, 13:16
  5. Height of the text without balnk space at the top
    By THRESHE in forum Qt Programming
    Replies: 6
    Last Post: 19th March 2008, 13:33

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.