このページでは

Qt Quick 例 - キーボード操作

ここでは、QMLにおけるキーボード操作の例をまとめています。

キーボードによるナビゲーションを示すグリッドおよびリストの要素。左側にプレースホルダーのコンテキストメニューが表示され、ナビゲーションが中断される

『Qt Quick 』の「キーボードフォーカス」では、キーボードフォーカスを処理するさまざまな方法が組み合わされています。詳細については、『Qt Quick 』の「キーボードフォーカス」をご覧ください。

例の動作確認

以下の手順でサンプルを実行できます:

キーボードの矢印キーを使用すると、フォーカスがメニューや「GridView 」に移動します。

code.qt.io のサンプルプロジェクト

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.