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

Having mouseSelectionMode: TextInput.SelectWords in TextEdit makes it harder to select text

    XMLWordPrintable

Details

    Description

      With following QML application:

      import QtQuick 1.1
      
      Rectangle {
          width: 360
          height: 200
      
          TextEdit {
              id: textEdit
              selectByMouse: true
              mouseSelectionMode: TextInput.SelectWords
              anchors {left: parent.left; right: parent.right}
              wrapMode: TextEdit.Wrap
              font.pixelSize: 30
              text: "these are the Lines of\nand text\nhere which cant be selected"
          }
      }
      

      Start mouse selection from the first letter and drag the mouse to bottom right corner of the window.

      Expected behavior:
      Lines should get selected as the y position gets to a new line. See the behavior without mouseSelectionMode: TextInput.SelectWords

      Actual behavior:
      Line is only selected when mouse is dragged over the word.

      Now it's very hard to select text with touch devices

      Attachments

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

        Activity

          People

            denexter Andrew den Exter (closed Nokia identity) (Inactive)
            arantone Aleksi Rantonen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes