Details
-
Bug
-
Resolution: Done
-
P4: Low
-
6.2.1
-
None
-
MSVC 2019
-
-
cc42d90eb4 (qt/qtbase/dev) cc42d90eb4 (qt/tqtc-qtbase/dev) d39700e125 (qt/tqtc-qtbase/6.2) 1893134145 (qt/qtbase/6.3) 1893134145 (qt/tqtc-qtbase/6.3)
Description
In 6.2.1, there is input trunctation for
void QPainter::drawText(const QRectF &rectangle, int flags, const QString &text, QRectF *boundingRect = nullptr)
Text does not draw with very large x and y. This issue was encountered drawing with y = 8.38868e+06.
The method works correctly in version 5.15.2 without prematurely converting large values.
Further, the standard integer method works
void QPainter::drawText(int x, int y, const QString &text)
A workaround is to use painter.translate(x, y) before and painter.translate(-x, -y) after the call.