PDA

View Full Version : QTextEdit



merlvingian
1st November 2006, 20:43
Is there any equivalent of QLineEdit::setValidator that can be used with QTextEdit? I need to have multiple lines of editing available but only allow 0-9 a-f characters, and do not see a simple solution for attaching a QRegExpValidator to a QTextEdit.

e8johan
2nd November 2006, 08:15
You could try installing an event filter - just do not forget to override the clipboard stuff in the text edit widget.