7
votes

How to make tab order navigation in QML

For example I have such code:

TextInput { id: one }
TextInput { id: two }
TextInput { id: three }

And I need on pressing tab from focus on "one" move to "three", haven't found that in official documentation.

1

1 Answers

10
votes
TextInput {
  id: one
  KeyNavigation.tab: three
}

Key navigation in QML is documented at this page and provide some example at:

http://qt-project.org/doc/qt-4.8/qml-keynavigation.html