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

QTextEdit::cursorForPosition() doesn't work with invisible blocks

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.5.1
    • GUI: Text handling
    • None
    • Linux

    Description

      This is related to QTBUG-91774. I found another instance where QTextEdit::cursorForPosition() doesn't work with invisible blocks. I have included another minimal example that shows the bug. If you run the example, and then scroll down to between block 99 and block 200 (blocks 100-199 are hidden), if you click in the space between block 99 and block 200, you won't get a valid cursor, and the QTextEdit will scroll to the top...

      Attachments

        1. codeeditor.pro
          0.1 kB
        2. main.cpp
          1.0 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            jgrauman Joshua Grauman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes