PDA

View Full Version : Single line QTextEdit



Arthur
30th August 2010, 19:08
Hello,

Is it possible to let QTextEdit operate in single line mode? I would like to switch from single to multiline with just one edit control.

Best regards,
Arthur

wysota
30th August 2010, 21:04
You can use QTextDocument::maximumBlockCount if you really want. But probably switching between QTextEdit and QLineEdit would be much better.