Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-123943

QTextDocument::contentsChange gives wrong values

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.2
    • GUI: Text handling
    • None
    • Windows 11, MSVC 2019 32bit
    • Windows

    Description

      After some testing, two scenarios appear to be repeatable 100% :

      • Inserting more than one char at once at the beginning of the document, like paste (previously copied text) more than one char at the very start, either by selecting previously inserted characters or not will give wrong values (Seems like this was already reported here)
      • Inserting a new line (\n) in a QListText
        • position is always equal to 2
        • charsRemoved is equal to the number of all previously inserted text until the end of the list (last '\n' excluded)
        • charsAdded is equal to charsRemoved + 1 (Speculating the '+ 1 ' is for the new inserted char, which is the newly inserted '\n')

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            ryuxnet Boufar Riyad
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes