I would like to make particular lines readonly in a subclassed QPlainTextEdit.
I know I could override the keyPressed event and ignore it on the lines to be readonly, but I would need to filter the key event for non-editing keys (such as arrow navigation keys). Also, this would not account for text being pasted on that line.
Is there any built-in support for this or a better way of doing it?