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

iOS Trackpad Feature is not moving the cursor in QML

    XMLWordPrintable

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

      Attachments

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

        Activity

          People

            richard Richard Moe Gustavsen
            eduard Eduard Metzger
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes