Doc: Explain how boundingRect handles null QRectF
Fixes: QTBUG-87107 Pick-to: 6.0 5.15 Change-Id: Ib7f9bd58b0f3454167dc61f95e0d8e6dec52a5ed Reviewed-by: Andy Shaw <andy.shaw@qt.io>
This commit is contained in:
parent
b036ca3347
commit
149ad1e615
@ -1480,7 +1480,9 @@ QRectF QFontMetricsF::boundingRect(QChar ch) const
|
||||
|
||||
Returns the bounding rectangle of the characters in the given \a text.
|
||||
This is the set of pixels the text would cover if drawn when constrained
|
||||
to the bounding rectangle specified by \a rect.
|
||||
to the bounding rectangle specified by \a rect. If \a rect is a reference
|
||||
to a \nullptr object, e.g. when passing a default constructed QRectF, the
|
||||
bounding rectangle will not constrain itself to the size.
|
||||
|
||||
The \a flags argument is the bitwise OR of the following flags:
|
||||
\list
|
||||
|
Loading…
Reference in New Issue
Block a user