Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.7.0
-
None
-
Windows 10
MSVC 2015
-
4d552815cf370c0d5abbbeb50ff1350b449e7bb2
Description
Suppose I want to draw a text like "line1\nline2" as a static text with 2 lines:
line1
line2
But QPainter::drawStaticText() draws the text as a single line like:
line1line2
even if setWrapMode(QTextOption::WordWrap) is called.
Attachments
For Gerrit Dashboard: QTBUG-56346 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
172746,2 | Fix plain text QStaticText with line breaks | 5.8 | qt/qtbase | Status: MERGED | +2 | 0 |