What happened to "Qt:TextWordBreak"?
General and Desktop
3
Posts
2
Posters
1.6k
Views
1
Watching
-
wrote on 24 Mar 2011, 19:52 last edited by
It's in the documentation, but codewise, seems like it doesn't exist.
I am trying to use "MyLabel->fontMetrics().size" to find out the size of a certain text in a label. the label is multi-line with word wrapping. I'd like to find out the size (mainly height) of the outcome text in the current font.
-
wrote on 24 Mar 2011, 20:25 last edited by
Hi ronM71,
it works in general, but with QFontMetrics::size(), it has no bounding rect...
Try out QFontMetrics::boundingRect... -
wrote on 24 Mar 2011, 20:53 last edited by
Thanks, that did the job along with "Qt::TextWordWrap"
1/3