Qt Forum

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

    Call for Presentations - Qt World Summit

    Unsolved Linking TextFields on Android with the 'Next' keyboard key

    Mobile and Embedded
    android qml
    3
    5
    1165
    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.
    • Michael R. Taylor
      Michael R. Taylor last edited by Michael R. Taylor

      Hello,

      I am trialing Qt for Android development (completely new to Qt, normally I use Java/C#/Raw C++). I have a question. How do I "link" text fields in QML so that the Android keyboard will have the "Next" button such that focus will go to another text field when it's pressed? Kind of like a tab-order for Android.

      Thank you,

      Michael

      the_ 1 Reply Last reply Reply Quote 1
      • the_
        the_ @Michael R. Taylor last edited by the_

        @Michael-R.-Taylor

        You could try to catch the key sequence and process to the next input field (eventFilter).
        //edit
        Maybe this link could help too
        http://stackoverflow.com/questions/20090164/how-to-make-qml-tab-order-navigantion

        -- No support in PM --

        Michael R. Taylor 1 Reply Last reply Reply Quote 0
        • Michael R. Taylor
          Michael R. Taylor @the_ last edited by

          @the_

          Thanks for the tip, but it doesn't seem to work on Android. The keyboard shows "Done" where I would like it to say "Next" for each text field.

          Surly there's a way to do this for when there is a series of text fields that need to be filled in one after another.

          1 Reply Last reply Reply Quote 0
          • Michael R. Taylor
            Michael R. Taylor last edited by

            My problem is very similar to this unsolved issue that I found: https://forum.qt.io/topic/60258/android-soft-keyboard-action-button/2

            1 Reply Last reply Reply Quote 0
            • S
              seyed last edited by

              @Michael-R-Taylor said in Linking TextFields on Android with the 'Next' keyboard key:

              https://forum.qt.io/topic/60258/android-soft-keyboard-action-button/2

              I posted a new reply and I explained how I did it.

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