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. How to determine what has been deleted in a QTextDocument?
Forum Updated to NodeBB v4.3 + New Features

How to determine what has been deleted in a QTextDocument?

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 733 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.
  • I Offline
    I Offline
    Ian Monroe
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tucnak
      wrote on last edited by
      #2

      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.

      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