How to determine what has been deleted in a QTextDocument?
-
QTextDocument::contentChanged tells you how many characters have been removed, but not what has been removed. I'm looking into storing QTextBlocks or similar and comparing before and after... but it sounds complicated and error-prone.
-
Heya
While I was working with QTextDocument, I experienced the same problem. In this case I would like to reimplement QTextDocument and handle all those changes with protected methods. I am pretty sure there is a good solution of this problem in this case.