Details
-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
5.8.0
-
None
Description
iPhone and iPad have a trackpad function. 3D touch the keyboard on iPhone and touch it with two fingers on iPad to enable it. It enables you to move the cursor in a trackpad fashion inside a text editor. Here is an article describing how it's activated , now to the problem:
I couldn't make it work on QML's TextEdit or TextArea yet. I also tried it in "Qt Quick Controls 2 - Gallery". It works in every native app, but not in Qt-based. I tried it on Qt 5.8.
Listening to Qt.inputMethod events I see that the cursor is moved, but x and y is not changing:
Connections{
target: Qt.inputMethod
onCursorRectangleChanged: {
console.log("cursor rectangle: " + Qt.inputMethod.cursorRectangle)
}
The method is triggered continuously as long as I move my finger in trackpad mode, but coordinates remain static most of the time. When I play around a little more and press harder in between I can get the cursor jump to the beginning of the line or beginning of a word, but that's all. It's mostly useless compared to the native experience. Maybe similar to: https://bugreports.qt.io/browse/QTBUG-51165