Hi,
I'ld like to print some text. Text is quite long (for example 1000 charcters). And I've text in QString text in one line (without any \n). I've tried to print it by:
QRectF textArea
(marginLeft,actTop,pageWidth,actLineHegiht
);
QRectF textArea3
= painter.
boundingRect(textArea,Qt
::TextWordWrap,tlumaczenie.
at(1));
painter.drawText(textArea, Qt::TextWordWrap, tlumaczenie.at(1),&textArea3);
painter.drawRect( textArea3 );
QRectF textArea(marginLeft,actTop,pageWidth,actLineHegiht);
QRectF textArea3 = painter.boundingRect(textArea,Qt::TextWordWrap,tlumaczenie.at(1));
painter.drawText(textArea, Qt::TextWordWrap, tlumaczenie.at(1),&textArea3);
painter.drawRect( textArea3 );
To copy to clipboard, switch view to plain text mode
And last code's (drawRect( textArea3 )) drawing me a multiline (I think so) area, but text is still in one line :/
Why? How to print long text?
Bookmarks