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

Multiple TextEdits can have text selected at the same time.

    XMLWordPrintable

Details

    Description

      It seems to be possible to have text selected in multiple places at the same time. In this qml file below are 2 TextEdits and 2 TextInputs. Each are able to have selected text.

      Item {
      width: 200
      height: 600
      TextInput

      { x: 10 y: 10 width: 200 height: 40 text: "ReadOnly TextInput " readOnly: true selectByMouse: true }

      TextEdit

      { x: 10 y: 70 width: 200 height: 100 text: "ReadOnly TextEdit element" readOnly: true selectByMouse: true }

      TextInput

      { x: 10 y: 150 width: 200 height: 50 text: "Editable TextInput" selectByMouse: true }

      TextEdit

      { x: 10 y: 250 width: 200 height: 100 text: "Editable TextEdit element" selectByMouse: true }

      }
      Steps to reproduce

      • Click on one of the Text elements and drag to select text.
      • Click on another text element and drag to select text.

      Actual results
      Both elements have selected text

      Expected result
      Would expect that when the user start selecting a different text that the previous selection is removed

      Remark:
      This happens only for TextEdits and not TextInputs.
      Also if one selects Text in TextEdits and clicks around it, text is unselected, but if you select text in one TextEdit and then jump to another TextEdit/TextInput selection stays as it is.
      Also visible on Desktop.

      Attachments

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

        Activity

          People

            jpetrell Joona Petrell
            mrudulpen Mrudul Pendharkar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes