Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.7.2
-
None
-
Windows XP SP3, Visual Studio 2008
-
f370dd07560c449ba17d13475721f7d3b46e6b24
Description
drawText(QRectF &rect, int flags, const QString &text, QRectF brect = 0)
since 4.7.2
if you have a text which does not fit inlen into the rect, the text will not be drawn at all.
like this: painter.drawText(rect, Qt::AlignLeft, myText);
in Version 4.7.1 is was cutted with the rect given in parameter 0.
if you use now the flag Qt::TextDontClip it results also in a non wanted way. The text will overlapp the rectangle.
like this: painter.drawText(rect, Qt::AlignLeft | Qt::TextDontClip, myText);
Rectangles on Printout only drawn to have a better understanding what happen.