QLabel height bug on Mac



  • 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().


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.