Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.8.0
-
None
-
Linux Arch
Description
QPainter::drawText(..., boundingRect) doesn't set boundingRect if the style of the painter is set to Qt::NoPen. This is due to an early exit test at the beginning of the function. Depending on the semantic of the function, I think boundingRect should be set either to the size of the bounding rectangle if a solid pen were used (what I would expect) or a null size rectangle. Note that drawText is used by QPainter::boundingRect(...) to calculate the returned rectangle.
Test case attached.