Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QLabel height bug on Mac
Forum Updated to NodeBB v4.3 + New Features

QLabel height bug on Mac

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    wibstr
    wrote on last edited by
    #1

    I've encountered what appears to be a minor bug on mac (Mountain Lion, Qt 4.8.0) and I was hoping there was a standard workaround for it. QLabel seems to be calculating the wrong height for itself for certain combinations of font and size, causing the bottom pixel or so of letters like 'g' and 'j' to be cut off. Here's a pic:

    http://www.anonmgur.com/up/913099ae904746457b22f0597214ef6f.png

    The first line is 12 pt Helvetica. The second line is 12 pt Helvetica with the minimumHeight() manually set to 14. The third line is 13 pt Helvetica.

    I get the same results using setFont() and setStyleSheet().

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved