のフォーカス管理Qt Quick Controls

Qt Quick Controlsフォーカス管理は、標準的なQt Quick フォーカス・システムに従いつつ、いくつかの便利な機能も追加されています。例えば、 プロパティを使用して、コントロールがフォーカスを受け取る方法を制御することができます。focusPolicy

フォーカス・スコープ・コントロール

Qt Quick Controls には、フォーカス・スコープとして機能するコントロールが用意されています:

ApplicationWindow

ヘッダーとフッターをサポートするスタイル付きトップレベルウィンドウ

ComboBox

オプション選択用のボタンとポップアップリストの組み合わせ

MenuBar

ウィンドウメニューバー

Page

ヘッダーとフッターをサポートするスタイル付きページコントロール

Pane

アプリケーション・スタイルとテーマにマッチした背景を提供

Popup

ポップアップのようなユーザー・インターフェース・コントロールの基本タイプ

RangeSlider

トラックに沿って2つのハンドルをスライドさせることにより、値の範囲を選択するために使用されます。

ScrollView

スクロール可能なビュー

SpinBox

ユーザーがプリセット値のセットから選択できるようにします。

SplitView

各項目の間にドラッグ可能なスプリッタを使用して項目をレイアウトします。

StackView

スタックベースのナビゲーションモデル

SwipeView

横スワイプによるページ移動が可能

TabBar

異なるビューやサブタスク間の切り替えが可能

Qt Quick のキーボードフォーカスも参照してください

© 2025 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.