src="https://assets.ubuntu.com/v1/8a8a25f0-qml-keyinteraction-example.png" alt="" />

Keyboard Focus in Qt Quick combines various methods of handling keyboard focus. For more information, visit Keyboard Focus in Qt Quick.

Running the Example

To run the example from Qt Creator, open the Welcome mode and select the example from Examples. For more information, visit Building and Running an Example.

Using the keyboard arrow keys, the focus shifts to the menus and the GridView.


  • keyinteraction/keyinteraction.qml
  • keyinteraction/focus/focus.qml
  • keyinteraction/focus/Core/ContextMenu.qml
  • keyinteraction/focus/Core/GridMenu.qml
  • keyinteraction/focus/Core/ListMenu.qml
  • keyinteraction/focus/Core/ListViewDelegate.qml
  • keyinteraction/focus/Core/TabMenu.qml
  • keyinteraction/main.cpp
  • keyinteraction/keyinteraction.pro
  • keyinteraction/keyinteraction.qmlproject
  • keyinteraction/keyinteraction.qrc