mefalo
8th December 2010, 10:22
The use of the windows
Use the following code returns wrong value
Well this is the bug?
QFont font("times", 24);
QFontMetrics myFontMetrics(font);
qDebug()<<myFontMetrics.boundingRect(0,0,50,2000,Qt::AlignLe ft | Qt::AlignTop | Qt::TextWordWrap,"123456789012345678901234567890");
//return QRect(0,0 480x36)
Use the following code returns wrong value
Well this is the bug?
QFont font("times", 24);
QFontMetrics myFontMetrics(font);
qDebug()<<myFontMetrics.boundingRect(0,0,50,2000,Qt::AlignLe ft | Qt::AlignTop | Qt::TextWordWrap,"123456789012345678901234567890");
//return QRect(0,0 480x36)