QTextDocument modified blocks



  • Greetings,

    I have a text editor (derived from QPlainTextEdit) with a side widget to show line numbers.

    On that side widget I want to show if a block has been modified (the same way Qt Creator editor does) but I can't figure out how to detect if a text block has been modified.

    Any suggestion on how I can do that?

    Thanks in advance,
    H.

    PS.
    I found the method @ int QTextBlock::revision() const @

    and played a little with it but without success. I don't know what exactly the return value is supposed to mean (the docs say nothing about it).


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.