I have a QPlainTextEdit, and I need to get a notification whenever it has selected text which is about to be removed (the reason being I want to backup it).
So I need to be notified when the text is about to be changed, but not changed yet (so no textChanged()
signal as it is sent after the change). I could then check if there is a selection and back it up. Unfortunately, there isn't a textChanging()
, only a textChanged()
signal.
What should I hook in this case?