maxvanceffer
maxvanceffer

Reputation: 103

How to make qml tab order navigation?

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.

Upvotes: 10

Views: 6978

Answers (1)

epsilon
epsilon

Reputation: 2969

TextInput {
  id: one
  KeyNavigation.tab: three
}

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

https://doc.qt.io/qt-6.5/qml-qtquick-keynavigation.html

Upvotes: 13

Related Questions