Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.12
-
None
-
qt5.12.7 official clang11.0.0
Description
I get the dynamic height of fixed width through QFontmetrics
QFontMetrics metrics(qApp->font());
QRect rect = metrics.boundingRect(QRect(0,0,maxWidth,0),Qt::TextWrapAnywhere,text);
return rect.height();
Text and Label work properly, and TextEdit displays an error if it contains [height]