Hi,
I was wondering if it is possible to have a line edit which only allows you to enter only maximum of 4 hex digits and in the range 0 - FFFF. I know this can be done with a QValidator, but this seems to be only after you have entered the data in the line edit. For instance, I could type in FEFEFEFEFE and it would only be when I press enter or something that I can validate the data. Do I need to override the keyPressEvent and subclass QLineEdit or just simply use setInputMask?
Regards,
Steve
Bookmarks