Hello guys,
Why next function returns 0 ? (My environment is: Windows Vista, vc++9, Qt4.5)
int func()
{
QPushButton button("Blah blah");
QFontMetrics fm = button.fontMetrics();
return fm.leading();
}
Calling to "fm.height()" returns reasonable results (16 px in my case).
Calling to "fm.lineSpacing()" returns same result as "fm.height()".
Calling to "fm.boundingRect(QRect(), 0, "first line\n second line\n third line").height();" returns 16 * 3, i.e. again inter-line spacing not included in result...
Is this incorrect usage from my side or something other ?