Unsolved KeyNavigation for component
-
Hello,
how to do tab navigation in a form which consists of input element defined in separate file?// Input1.qml Rectangle{ TextInput{ id: inputField } }
Input1{ id: firstName // on tab go to surname } Input1{ id: surname // on tab fo to firstName }
-
I believe you can achieve this by wrapping the component in a FocusScope. This article and example should be enough to get you there.
http://doc.qt.io/qt-5/qtquick-input-focus.html
http://doc.qt.io/qt-5/qtquick-keyinteraction-example.html