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

Android: input method prevents selection

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 5.3.1
    • 5.3.0
    • None
    • Android 4.4.2 (Nexus 5)
    • Android
    • b732e56969940a9c3bbb1b4e09d671005e4a1006

      Steps using the testcase below:

      • press and hold to select a word
        => ok
      • tap a word to turn on the prediction mode
      • press and hold to select a word
        => selection disappears / text gets replaced / cursor jumps
      import QtQuick 2.1
      import QtQuick.Window 2.1
      
      Window {
          width: 360
          height: 360
          visible: true
      
          TextEdit {
              id: edit
              anchors.fill: parent
              wrapMode: TextEdit.Wrap
              text: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. " +
                    "Morbi varius a lorem ac blandit. Donec eu nisl eu nisi consectetur commodo. " +
                    "Vestibulum tincidunt tellus sit amet ornare tempor. " +
                    "Nulla dolor dui, vehicula quis tempor quis, ullamcorper vel dui. " +
                    "Integer semper suscipit ante, et luctus magna malesuada sed. " +
                    "Sed ipsum velit, pellentesque non aliquam eu, bibendum ac magna. " +
                    "Donec et luctus dolor. Nulla semper quis neque vitae cursus. " +
                    "Etiam auctor, ipsum vel varius tincidunt, erat lacus pulvinar sem, eu egestas leo nulla non felis. " +
                    "Maecenas hendrerit commodo turpis, ac convallis leo congue id. " +
                    "Donec et egestas ante, a dictum sapien."
      
              MouseArea {
                  anchors.fill: parent
                  onClicked: {
                      edit.forceActiveFocus()
                      edit.cursorPosition = edit.positionAt(mouse.x, mouse.y)
                  }
                  onPressAndHold: {
                      edit.cursorPosition = edit.positionAt(mouse.x, mouse.y)
                      edit.selectWord()
                  }
              }
          }
      }
      

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

            tvete Paul Olav Tvete
            jpnurmi J-P Nurmi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes