[Qt-interest] QPlainTextEdit

Cristian cristian.tarsoaga at gmail.com
Mon Apr 20 15:03:23 CEST 2009


Hi there, I have a big problem with QPlainTextEdit
I do not find any way of limiting the number of characters per line.
What I need is to enter the text but automatically auto-break any line
that is longer than xx characters.


I tried QTextDocument::setTextWidth with no success (nothing ever happens)

I am also about to try
QPlainTextEdit::setWordWrapMode(QTextOption::ManualWrap) but I don't
know how to set the line width ???


Any ideeas?
   THanks,
      Chris




More information about the Qt-interest-old mailing list