Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-28637

Selecting multiline text is rendered incorrectly sometimes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • Qt Creator 9.0.2
    • Qt Creator 9.0.1
    • Editors
    • None
    • Kubuntu 22.04, X11, Nvidia driver 525.60.11
    • Linux/X11
    • 91b527427 (9.0)

    Description

      1. Open a C++ code file with multiple lines of text.
      2.1. Press Alt and Left Click and move the mouse to select multiple lines of text with a multi-line cursor.
      2.2. Alternatively, press Alt and Left Click to create a multi-line cursor. Then press Shift and Left/Right Arrow keys to select text via keyboard.

      Expected result:

      Multi-line text selection is rendered.

      Actual result:

      Only some lines are rendered as selected, typically the bottom ones. The first line(s) are rendered as cleared. See the attached video.

      The actual text is not removed, so when the multi-line selection is cleared the text reappears. Looks like a rendering issue.

      This does not reproduce 100% of time, I'm not sure what triggers it. Maybe this happens when the code model doesn't recognize some of the text being selected (e.g. it doesn't recognize the function that is being called or it thinks the arguments are incorrect), but this is not a definitive factor as I've seen the selection rendered correctly in such cases too. It does consistently reproduce or not reproduce against a given piece of code though.

      Attachments

        1. lastique_light.xml
          5 kB
        2. Screencast_vp9.mkv
          80 kB
        3. Screencast.mp4
          72 kB

        Activity

          People

            davschul David Schulz
            lastique Andrey Semashev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: