Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Forum Updated on Feb 6th

    Unsolved iOS Trackpad not moving the cursor

    Mobile and Embedded
    2
    4
    622
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • EduardMe
      EduardMe last edited by EduardMe

      Hello!

      On iPhone and iPad is 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 on the text editor. Here is an article describing how it works, 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.

      Is this a bug or is there anything I can do? Maybe use a native UITextField? I can't find any resources from Apple on this. It looks like a default built-in feature.

      ekkescorner 1 Reply Last reply Reply Quote 0
      • ekkescorner
        ekkescorner Qt Champions 2016 @EduardMe last edited by

        @EduardMe just learned something new - wasn't aware of this iOS feature. (Using iPhone and iPad only to test apps on and not for daily work)

        I had a similar issue on BlackBerry Android Device with a physical keyboard, but this keyboard is also touchable and you can move the cursor. These gestures from physical kapazative keyboard works with native android apps but not in my QtQuickControls2 Apps. I created a Bug: https://bugreports.qt.io/browse/QTBUG-51165

        Please open a bug for iOS and perhaps refer to this Android bug

        ekke
        Qt Champion
        mobile business apps
        Qt Quick Controls 2 (Material style) for Android / iOS

        1 Reply Last reply Reply Quote 1
        • EduardMe
          EduardMe last edited by

          Thanks for the info. I have filed a bug and referred to your bug: https://bugreports.qt.io/browse/QTBUG-59403

          ekkescorner 1 Reply Last reply Reply Quote 0
          • ekkescorner
            ekkescorner Qt Champions 2016 @EduardMe last edited by

            @EduardMe said in iOS Trackpad not moving the cursor:

            Thanks for the info. I have filed a bug and referred to your bug: https://bugreports.qt.io/browse/QTBUG-59403

            thanks. I just tested again with Qt 5.8 and gestures from capazative keyboard (Android) still not recognized by Qt apps as native apps do.

            ekke
            Qt Champion
            mobile business apps
            Qt Quick Controls 2 (Material style) for Android / iOS

            1 Reply Last reply Reply Quote 0
            • First post
              Last post