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 Updated to NodeBB v4.3 + New Features

[solved]tab for TextInput in QML

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 3 Posters 6.2k Views 1 Watching
  • 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 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 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 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

        • Login

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