Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. [solved]tab for TextInput in QML
Forum Update on Monday, May 27th 2025

[solved]tab for TextInput in QML

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 3 Posters 6.1k Views
  • 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.
  • K Offline
    K Offline
    kathy
    wrote on 12 Jul 2011, 13:44 last edited by
    #1

    I have some QML element like TextInput and I would like to use tab key to switch the focus between different input. How to do it? any example?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dialingo
      wrote on 12 Jul 2011, 14:50 last edited by
      #2

      http://developer.qt.nokia.com/forums/viewthread/3372

      The term "tab order" gives you the hits you need.

      1 Reply Last reply
      0
      • B Offline
        B Offline
        baysmith
        wrote on 12 Jul 2011, 14:53 last edited by
        #3

        See http://doc.qt.nokia.com/latest/qml-keynavigation.html

        Basically, set the KeyNavigation tab and backtab properties to the items which focus should switch to for Tab and Shift+Tab.

        @
        KeyNavigation.tab: nextItem
        KeyNavigation.backtab: prevItem
        @

        Nokia Certified Qt Specialist.

        1 Reply Last reply
        0

        1/3

        12 Jul 2011, 13:44

        • Login

        • Login or register to search.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved