Restrict special characters in QTextEdit control
I have used QTextEdit widget in my GUI. I want to restrict special characters from entering in textedit control.
Can somebody tell me the way to do this.
An event filter comes to find. Filter on incomming key events. If they represent a special character, simply filter out the event. Note that you also need to considder pasting in text from the clipboard.
even inputmask property can help in this.
[quote author="sandy.pareek" date="1341821603"]even inputmask property can help in this.
inputMask is a property of [[Doc:QLineEdit]] and is not available in a [[Doc:QTextEdit]].
thank you sir.
your correction is encouragement to us.