Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.3.0
-
None
-
Android 4.4.2 (Nexus 5)
-
-
b732e56969940a9c3bbb1b4e09d671005e4a1006
Description
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() } } } }
Attachments
Issue Links
- is required for
-
QTBUG-38934 Add support for text selection handles
- Closed