Hi

I am having One QtextEdit control and i have Overridden keypressEvent to limit the maximum no of characters in the QTextEdit. Its working fine, But what is the problem is If we copy data from outside, it menas from notepad or some other, and paste in the textedit controls, it accepts all the characters.

I want to limit

How it can be done

Warm regards
Vijay