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.
Attachments
For Gerrit Dashboard: QTBUG-103745 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
412574,2 | Enable text layout drawing on coordinates outside QFIXED_MAX | dev | qt/qtbase | Status: MERGED | +2 | 0 |
412811,3 | Enable text layout drawing on coordinates outside QFIXED_MAX | 6.3 | qt/qtbase | Status: MERGED | +2 | 0 |
412856,3 | Enable text layout drawing on coordinates outside QFIXED_MAX | tqtc/lts-6.2 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |