Restrict special characters in QTextEdit control
-
Hi,
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.
regards
sandy -
[quote author="sandy.pareek" date="1341821603"]even inputmask property can help in this.
regards
sandy[/quote]inputMask is a property of [[Doc:QLineEdit]] and is not available in a [[Doc:QTextEdit]].
-
volker
thank you sir.
your correction is encouragement to us.http://thinkexist.com/quotation/cluelessness-there_are_no_stupid_questions-but/340958.html