Quote Originally Posted by wysota
Or subclass QTextEdit and change it
Isn't it rather QTextDocument that should be subclassed in that case?