View Full Version : upper case input

2nd October 2006, 10:32
Hi all,
hoping it's not too trivial question (I checked in the docs without success) I'd like to know if it's possible to have a QlineEdit where when editing the characters are represented in Upper case even if the keyboard has no Caps Lock.
I tried with a inputMask but I don't know exactly how many chars will be edited and in any case I don't think it's the proper solution.
Thanks for any help

2nd October 2006, 10:44
I would either (1) apply a validator which would convert characters to upper case in its fixup method or (2) connect lineedit's textChanged signal to a custom slot which would change the contents to upper case.