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. QTextBrowser detect image deletion
Forum Updated to NodeBB v4.3 + New Features

QTextBrowser detect image deletion

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 230 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.
  • S Offline
    S Offline
    shaun2344
    wrote on last edited by
    #1

    I am inserting an image using html into a QTextBrowser and would like to detect the user deleting the image. I can detect text being deleted using the contentsChange signal.

    How would I do something similar to get the html changes so I can track which image has been deleted?

    Pablo J. RoginaP 1 Reply Last reply
    0
    • S shaun2344

      I am inserting an image using html into a QTextBrowser and would like to detect the user deleting the image. I can detect text being deleted using the contentsChange signal.

      How would I do something similar to get the html changes so I can track which image has been deleted?

      Pablo J. RoginaP Offline
      Pablo J. RoginaP Offline
      Pablo J. Rogina
      wrote on last edited by
      #2

      @shaun2344 what about having a copy of the text before the user change(s) and doing a comparison on contentsChange signal?

      Upvote the answer(s) that helped you solve the issue
      Use "Topic Tools" button to mark your post as Solved
      Add screenshots via postimage.org
      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

      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