| ... | @@ -35,11 +35,12 @@ the focus should be set internally when entering a component. In practice, qml |
... | @@ -35,11 +35,12 @@ the focus should be set internally when entering a component. In practice, qml |
|
|
use the principle of focus chain, so restoring the focus on the parent element
|
|
use the principle of focus chain, so restoring the focus on the parent element
|
|
|
will restore the active focus on the child item.
|
|
will restore the active focus on the child item.
|
|
|
|
|
|
|
|
It is important to be familiar with the concept of active focus [^1] and how the
|
|
It is important to be familiar with the concept of active focus [1] and how the
|
|
|
input focus [^2] works in Qml.
|
|
input focus [2] works in Qml.
|
|
|
|
|
|
|
|
[^1] https://doc.qt.io/qt-5/qml-qtquick-item.html#activeFocus-prop
|
|
[1]: https://doc.qt.io/qt-5/qml-qtquick-item.html#activeFocus-prop
|
|
|
[^2] https://doc.qt.io/qt-5/qtquick-input-focus.html
|
|
|
|
|
|
[2]: https://doc.qt.io/qt-5/qtquick-input-focus.html
|
|
|
|
|
|
|
|
|
|
|
|
|
## sample code usage
|
|
## sample code usage
|
| ... | |
... | |
| ... | | ... | |