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

QLineEdit : Extending selection to the left unselects previously selected word under cursor (different from TextEdit)

    XMLWordPrintable

Details

    Description

      when a word is selected by double-click (or double tap on touch screen) and the mouse (and over all the finger on touch) is moved Left side along the line, the selected word needs to be kept selected during the selection process. This behavior is working with QTextEdit (the multiline editor), but not with QLineEdit.

      Attached GIF shows this behavior.
      If mouse is moved left side it selects other words but not the word on which mouse was double clicked.

      Steps to reproduce:

      • Create line edit with text "Word1 Word2 Word3"
      • Doubleclick to select "Word2"
      • Extend selection to the left (Ctrl+Shift+Left Arrow or Mouse/touch)
      • Expected: "Word1 Word2" is selected
      • Actual: "Word1 " is selected
      • Repeat extending selection to the right: Works, "Word2 Word3" is selected
      • Note: Works with Q[Plain]TextEdit

      Attachments

        1. behavior.gif
          behavior.gif
          97 kB
        2. nativewineditcontrol.zip
          1 kB
        3. qtbug46294_diag.diff
          4 kB
        4. qtbug46294_diag2.diff
          3 kB
        5. qtbug46294_leftlog.txt
          4 kB
        6. qtbug46294_rightlog.txt
          8 kB
        7. qtbug46294.zip
          2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            qtcomsupport Qt Support
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews