PDA

View Full Version : QTextEdit UpperCase



ederbs
17th November 2006, 20:59
Hi,

It would like that my QTexEdit is in UpperCase more does not function as the QLineEdit.

QLineEdit functions OK

txtLineEdit->setValidator(new MyClassUpperCase(this));

But this does not function for a QTextEdit.

Ederson de Moura

e8johan
18th November 2006, 15:05
You cannot apply validators to qtextedit. Try listening to textChanged signals and changing the text there... or install an event filter (but do not forget clopboard operations)

ederbs
18th November 2006, 15:41
I go to try to make what it suggested

Thanks