Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make qml tab order navigation?

Tags:

tabs

qt

qml

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.

like image 954
maxvanceffer Avatar asked Nov 20 '13 07:11

maxvanceffer


1 Answers

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

like image 65
epsilon Avatar answered Dec 10 '22 20:12

epsilon