The use of the windows
Use the following code returns wrong value
Well this is the bug?
qDebug()<<myFontMetrics.boundingRect(0,0,50,2000,Qt::AlignLeft | Qt::AlignTop | Qt::TextWordWrap,"123456789012345678901234567890");
//return QRect(0,0 480x36)
QFont font("times", 24);
QFontMetrics myFontMetrics(font);
qDebug()<<myFontMetrics.boundingRect(0,0,50,2000,Qt::AlignLeft | Qt::AlignTop | Qt::TextWordWrap,"123456789012345678901234567890");
//return QRect(0,0 480x36)
To copy to clipboard, switch view to plain text mode
Bookmarks