Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QTextDocument modified blocks
Qt 6.11 is out! See what's new in the release blog

QTextDocument modified blocks

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 491 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Arnaut
    wrote on last edited by
    #1

    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).

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved