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

Inserting a new line (not new paragraph) in a QTextEdit causes the caret to draw incorrectly until the next character is inserted

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.11.2, 5.12.1, 6.8.0 FF
    • GUI: Text handling
    • None
    • macOS

    Description

      STEPS TO REPRODUCE
      1. Build and run the attached test app.
      2. Type 'TEST' into the text edit.
      3. Press Shift+Enter to insert a new line.

      EXPECTED: The caret moves to the start of the new line, with the correct size.
      ACTUAL: A correctly-sized caret draws too high on the new line, and an incorrectly-sized caret blinks at the start of the line.

      4. Now type another letter T. Observe that the caret corrects itself.

      I've attached screenshots demonstrating the problem.

      Attachments

        1. text-edit-test.zip
          3 kB
          James Larcombe
        2. caret corrected after typing.png
          39 kB
          James Larcombe
        3. wrong caret blink on.png
          39 kB
          James Larcombe
        4. wrong caret blink off.png
          39 kB
          James Larcombe
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            jlarcombe James Larcombe
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes