Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QLabel height bug on Mac
wibstr last edited by
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:
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().