-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.15.19, 6.9.1
-
None
-
Qt 5.15.19 (MSVC2019, x64)
Qt 6.9.1 (MSVC2022, x64)
Windows 11 (23H2)
When using QPainter::drawStaticText() to draw text from a QStaticText object, the underline and strikeout lines are rendered at incorrect positions and angles.
They appear diagonally shifted, not just vertically misaligned.
The displacement depends on font size, painter scale, and Qt version.
This does not happen with QPainter::drawText() under the same transformation.
Steps to Reproduce:
1. Build and run the attached file static_text_bug.cpp
Qt 5.15.19 (MSVC2019, x64)
Qt 6.9.1 (MSVC2022, x64)