[SOLVED]drawText() on multiple line
-
Hi all,
i have the necessity to draw text on a multiple line for create something like a QTextEdit in the Designer but with alone drawtext() i can't do this. other this i have a text to long and is more difficult calculate the string lenght for make a "for cycle" and draw line to line...
Anyone can halp me?
regard
-
Use "this overloaded drawText":http://qt-project.org/doc/qt-4.8/qpainter.html#drawText-10 with Qt::TextWordWrap flag
-
[quote author="cincirin" date="1331726961"]Use "this overloaded drawText":http://qt-project.org/doc/qt-4.8/qpainter.html#drawText-10 with Qt::TextWordWrap flag[/quote]
Run!!! Tanx so much!!!
-
[quote author="Vetryaspa" date="1331733990"]
[quote author="cincirin" date="1331726961"]Use "this overloaded drawText":http://qt-project.org/doc/qt-4.8/qpainter.html#drawText-10 with Qt::TextWordWrap flag[/quote]Run!!! Tanx so much!!![/quote]
You are welcome :-)