Details
-
Suggestion
-
Resolution: Invalid
-
Not Evaluated
-
None
-
5.9.0, 5.10.0
-
None
Description
When creating a QtQuick Text element with multiple lines of text, the width is always bigger than the contentWidth. The very hard-to-understand documentation of contentWidth does not make clear what happens. The documentation of contentHeight and wrapMode implies that contentHeight can be bigger than the height but never less.
As a normal user I would assume that width/height are always as big as the displayed text.
In the attached screenshot the red rectangle is based on width/height of the text whereas the green one is based on contentWidth and contentHeight.