KeyboardStyle QML Type
仮想キーボード用のスタイリング・インターフェースを提供します。詳細...
Import Statement: | import QtQuick.VirtualKeyboard.Styles |
Inherits: |
プロパティ
- alternateKeysListBackground : Component
- alternateKeysListBottomMargin : real
- alternateKeysListDelegate : Component
- alternateKeysListHighlight : Component
- alternateKeysListItemHeight : real
- alternateKeysListItemWidth : real
- alternateKeysListLeftMargin : real
- alternateKeysListRightMargin : real
- alternateKeysListTopMargin : real
- backspaceKeyPanel : Component
- characterPreviewDelegate : Component
- characterPreviewMargin : real
- enterKeyPanel : Component
- fullScreenInputBackground : Component
(since QtQuick.VirtualKeyboard.Styles 2.2)
- fullScreenInputColor : color
(since QtQuick.VirtualKeyboard.Styles 2.2)
- fullScreenInputContainerBackground : Component
(since QtQuick.VirtualKeyboard.Styles 2.2)
- fullScreenInputCursor : Component
(since QtQuick.VirtualKeyboard.Styles 2.2)
- fullScreenInputFont : font
(since QtQuick.VirtualKeyboard.Styles 2.2)
- fullScreenInputMargins : real
(since QtQuick.VirtualKeyboard.Styles 2.2)
- fullScreenInputPadding : real
(since QtQuick.VirtualKeyboard.Styles 2.2)
- fullScreenInputPasswordCharacter : string
(since QtQuick.VirtualKeyboard.Styles 2.2)
- fullScreenInputSelectedTextColor : color
(since QtQuick.VirtualKeyboard.Styles 2.2)
- fullScreenInputSelectionColor : color
(since QtQuick.VirtualKeyboard.Styles 2.2)
- functionPopupListBackground : Component
(since QtQuick.VirtualKeyboard.Styles 6.2)
- functionPopupListDelegate : Component
(since QtQuick.VirtualKeyboard.Styles 6.2)
- functionPopupListHighlight : Component
(since QtQuick.VirtualKeyboard.Styles 6.2)
- handwritingKeyPanel : Component
- hideKeyPanel : Component
- keyPanel : Component
- keyboardBackground : Component
- keyboardDesignHeight : real
- keyboardDesignWidth : real
- keyboardHeight : real
- keyboardRelativeBottomMargin : real
- keyboardRelativeLeftMargin : real
- keyboardRelativeRightMargin : real
- keyboardRelativeTopMargin : real
- languageKeyPanel : Component
- languageListAdd : Transition
(since QtQuick.VirtualKeyboard.Styles 2.1)
- languageListBackground : Component
(since QtQuick.VirtualKeyboard.Styles 2.1)
- languageListDelegate : Component
(since QtQuick.VirtualKeyboard.Styles 2.1)
- languageListHighlight : Component
(since QtQuick.VirtualKeyboard.Styles 2.1)
- languageListRemove : Transition
(since QtQuick.VirtualKeyboard.Styles 2.1)
- languagePopupListEnabled : bool
(since QtQuick.VirtualKeyboard.Styles 2.1)
- modeKeyPanel : Component
- navigationHighlight : Component
(since QtQuick.VirtualKeyboard.Styles 1.1)
- popupListAdd : Transition
(since QtQuick.VirtualKeyboard.Styles 2.1)
- popupListBackground : Component
(since QtQuick.VirtualKeyboard.Styles 2.1)
- popupListDelegate : Component
(since QtQuick.VirtualKeyboard.Styles 2.1)
- popupListHighlight : Component
(since QtQuick.VirtualKeyboard.Styles 2.1)
- popupListRemove : Transition
(since QtQuick.VirtualKeyboard.Styles 2.1)
- scaleHint : real
- selectionHandle : Component
(since QtQuick.VirtualKeyboard.Styles 2.1)
- selectionListAdd : Transition
(since QtQuick.VirtualKeyboard.Styles 1.3)
- selectionListBackground : Component
- selectionListDelegate : Component
- selectionListHeight : real
- selectionListHighlight : Component
- selectionListRemove : Transition
(since QtQuick.VirtualKeyboard.Styles 1.3)
- shiftKeyPanel : Component
- spaceKeyPanel : Component
- symbolKeyPanel : Component
- traceCanvasDelegate : Component
(since QtQuick.VirtualKeyboard.Styles 2.1)
- traceInputKeyPanelDelegate : Component
(since QtQuick.VirtualKeyboard.Styles 2.1)
詳細説明
style 型は、InputPanel が仮想キーボードを装飾するために使用するスタイル定義を提供します。
デザイン サイズは、仮想キーボードの縦横比を指定します。スタイルは、キーボードの実際の高さとデザインの高さから計算されるscaleHint に従ってスケーラブルです。
プロパティ ドキュメント
alternateKeysListBackground : Component |
代替キー一覧の背景のテンプレート。
alternateKeysListBottomMargin : real |
代替キー一覧パネルの下端余白。
alternateKeysListHighlight : Component |
代替キーリストのハイライトのテンプレート。
注: デリゲートはListView.highlight
として使用されます。
alternateKeysListItemHeight : real |
代替キーリスト項目の高さ。
alternateKeysListItemWidth : real |
代替キー一覧項目の幅。
alternateKeysListLeftMargin : real |
代替キー一覧パネルの左マージン。
alternateKeysListRightMargin : real |
代替キー一覧パネルの右マージン。
alternateKeysListTopMargin : real |
代替キー一覧パネルの上マージン
characterPreviewDelegate : Component |
文字プレビューポップアップのテンプレート。
デリゲートにtext
プロパティが含まれている場合、コンポーネントがアクティブになると、そのプロパティは表示テキストで更新されます。
property string text
例
characterPreviewDelegate: Item { property string text id: characterPreview Rectangle { id: characterPreviewBackground anchors.fill: parent ... Text { text: characterPreview.text anchors.fill: parent ... } } }
characterPreviewMargin : real |
各キーの上端からcharacterPreviewDelegate の下端までのピクセル数。
fullScreenInputBackground : Component |
このプロパティは、フルスクリーン入力の背景のデリゲートを保持します。
このプロパティは、QtQuick.VirtualKeyboard.Styles 2.2 で導入されました。
fullScreenInputColor : color |
このプロパティは、フルスクリーン入力フィールドのテキスト色を保持します。
デフォルトは黒です。
このプロパティは QtQuick.VirtualKeyboard.Styles 2.2 で導入されました。
fullScreenInputContainerBackground : Component |
このプロパティは、フルスクリーン入力コンテナの背景のデリゲートを保持します。
このプロパティは QtQuick.VirtualKeyboard.Styles 2.2 で導入されました。
fullScreenInputCursor : Component |
このプロパティは、フルスクリーン入力フィールドのカーソルのデリゲートを保持します。
このデリゲートは、フルスクリーン入力フィールドに定義されたparent.blinkStatus
プロパティに従って、カーソルの可視性を切り替える必要があります。例えば
fullScreenInputCursor: Rectangle { width: 1 color: "#000" visible: parent.blinkStatus }
このプロパティは、QtQuick.VirtualKeyboard.Styles 2.2で導入されました。
fullScreenInputFont : font |
このプロパティは、フルスクリーン入力フィールドのfont
を保持します。
このプロパティは、QtQuick.VirtualKeyboard.Styles 2.2で導入されました。
fullScreenInputMargins : real |
このプロパティは、フルスクリーン入力フィールドの周りのマージンを保持します。
デフォルト値は0
です。
このプロパティは QtQuick.VirtualKeyboard.Styles 2.2 で導入されました。
fullScreenInputPadding : real |
このプロパティは、フルスクリーン入力コンテンツの周りのパディングを保持します。
デフォルト値は0
です。
このプロパティは QtQuick.VirtualKeyboard.Styles 2.2 で導入されました。
fullScreenInputPasswordCharacter : string |
このプロパティは、フルスクリーン入力フィールドのパスワードマスク文字を保持します。
このプロパティは QtQuick.VirtualKeyboard.Styles 2.2 で導入されました。
fullScreenInputSelectedTextColor : color |
このプロパティは、フルスクリーン入力フィールドの選択テキストの色を保持します。
デフォルトの色はfullScreenInputColor
に設定されています。
このプロパティは QtQuick.VirtualKeyboard.Styles 2.2 で導入されました。
fullScreenInputSelectionColor : color |
このプロパティは、フルスクリーン入力フィールドの選択色を保持します。
デフォルトの色は半透明の黒です。
このプロパティは QtQuick.VirtualKeyboard.Styles 2.2 で導入されました。
functionPopupListBackground : Component |
関数ポップアップリストの背景テンプレート。
このプロパティは QtQuick.VirtualKeyboard.Styles 6.2 で導入されました。
functionPopupListDelegate : Component |
関数リスト項目のテンプレート。
注: デリゲートは、ListView で使用されます。
アイテムには、以下のプロパティがあります:
keyboardFunction
- 現在のアイテムのキーボード機能。
このプロパティは、QtQuick.VirtualKeyboard.Styles 6.2で導入されました。
functionPopupListHighlight : Component |
機能ポップアップリストのハイライトのテンプレート。
注: デリゲートは、ListView.highlight
として使用されます。
このプロパティは QtQuick.VirtualKeyboard.Styles 6.2 で導入されました。
keyPanel : Component |
通常キーのテンプレート。
注 :デリゲートはKeyPanel タイプに基づいていなければならない。
例
keyPanel: KeyPanel { Rectangle { anchors.fill: parent ... Text { anchors.fill: parent text: control.displayText ... } } }
keyboardBackground : Component |
キーボード背景のテンプレート。
例:キーボードの背景のテンプレート:
keyboardBackground: Rectangle {
color: "black"
}
keyboardDesignHeight : real |
キーボードの高さ。
keyboardDesignWidth : real |
キーボードの幅。
keyboardHeight : real |
キーボードの現在の高さ。
keyboardRelativeBottomMargin : real |
キーボードの高さに対するパーセンテージ(0.0
-1.0
)で表した、キーボードの一番下のキーとキーボードコンテナの一番下の端の間の距離。
keyboardRelativeLeftMargin : real |
一番左のキーとキーボードの左端との間の距離を、キーボードの幅に対するパーセンテージ (0.0
-1.0
) で表す。
keyboardRelativeRightMargin : real |
一番右のキーとキーボードの右端との間の距離を、キーボードの幅に対するパーセンテージ (0.0
-1.0
) で表す。
この値はキーボードの幅に比例する。
keyboardRelativeTopMargin : real |
一番上のキーとキーボードの上端との距離。キーボードの高さに対するパーセンテージ (0.0
-1.0
) で表される。
languageListAdd : Transition |
このプロパティは、言語リストビューに追加されるアイテムに適用する遷移を保持します。
このプロパティは、QtQuick.VirtualKeyboard.Styles 2.1 で導入されました。
languageListBackground : Component |
言語リスト背景のテンプレート。
このプロパティは、QtQuick.VirtualKeyboard.Styles 2.1 で導入されました。
languageListDelegate : Component |
言語リスト項目のテンプレート。
注意: デリゲートは、ListView で使用されます。
注: デリゲートは、SelectionListItem タイプに基づいている必要があります。
項目には以下のプロパティがあります:
displayName
言語の表示名。
このプロパティは、QtQuick.VirtualKeyboard.Styles 2.1 で導入されました。
languageListHighlight : Component |
言語リストのハイライトのテンプレート。
注: デリゲートは、ListView.highlight
として使用されます。
このプロパティは、QtQuick.VirtualKeyboard.Styles 2.1 で導入されました。
languageListRemove : Transition |
このプロパティは、言語リストビューから削除されたアイテムに適用する遷移を保持します。
このプロパティは QtQuick.VirtualKeyboard.Styles 2.1 で導入されました。
languagePopupListEnabled: bool |
このプロパティは、言語キーがクリックされたときにポップアップリストが表示されるかどうかを決定します。このプロパティがfalse
の場合、言語キーをクリックすると、利用可能な言語が1つずつ循環します。
デフォルト値はfalse
です。
このプロパティは、QtQuick.VirtualKeyboard.Styles 2.1 で導入されました。
modeKeyPanel : Component |
汎用モードキーのテンプレート。
このテンプレートは、状態がオンまたはオフになるキーの視覚化を提供します。このテンプレートは、状態に関係なくキーのラベルが変わらない状況で使用されます。
現在の状態は、control.mode
プロパティで利用可能です。
注: デリゲートは、KeyPanel タイプに基づいている必要があります。
navigationHighlight : Component |
ナビゲーションハイライト項目のテンプレート。
このアイテムは、キーボード上のナビゲーションフォーカスをハイライトするために、矢印キーナビゲーションモードで使用されます。
このアイテムは通常、ハイコントラストのボーダーを持つ透明な四角形です。
このプロパティは、QtQuick.VirtualKeyboard.Styles 1.1 で導入されました。
popupListAdd : Transition |
このプロパティは、ポップアップリストビューに追加されるアイテムに適用する遷移を保持します。
このプロパティは QtQuick.VirtualKeyboard.Styles 2.1 で導入されました。
popupListBackground : Component |
ポップアップリストの背景のテンプレート。
このプロパティは QtQuick.VirtualKeyboard.Styles 2.1 で導入されました。
popupListDelegate : Component |
ポップアップリスト項目のテンプレート。
注: デリゲートはListView で使用されます。
注: デリゲートは、SelectionListItem タイプに基づいている必要があります。
アイテムには以下のプロパティがあります:
display
現在の項目の表示テキスト。wordCompletionLength
表示テキストの末尾から測った単語完了の長さ。dictionary
単語の辞書タイプ。 を参照。QVirtualKeyboardSelectionListModel::DictionaryTypecanRemoveSuggestion
単語を辞書から削除できるかどうかを示すブーリアン。
このプロパティは、QtQuick.VirtualKeyboard.Styles 2.1 で導入されました。
popupListHighlight : Component |
ポップアップリストハイライトのテンプレート。
注: デリゲートは、ListView.highlight
として使用されます。
このプロパティは、QtQuick.VirtualKeyboard.Styles 2.1 で導入されました。
popupListRemove : Transition |
このプロパティは、ポップアップリストビューから削除されたアイテムに適用する遷移を保持します。
このプロパティは QtQuick.VirtualKeyboard.Styles 2.1 で導入されました。
scaleHint : real |
キーボードスタイルのスケールヒント。この値は、keyboardHeight をkeyboardDesignHeight で割った値です。すべてのピクセル寸法は、この値に比例する必要があります。
selectionHandle : Component |
こ の項目は、 テ キ ス ト 選択範囲の境界を示 し 、 選択範囲の開始ま たは終了を イ ン タ ラ ク テ ィ ブに移動で き る よ う にす る ために用い ら れます。選択開始と選択終了の両方に同じ項目が使われます。
選択ハンドルは現在、アプリケーションベースの統合メソッドでのみサポートされています。
このプロパティは、QtQuick.VirtualKeyboard.Styles 2.1 で導入されました。
selectionListAdd : Transition |
このプロパティは、選択リストビューに追加されるアイテムに適用する遷移を保持します。
このプロパティは QtQuick.VirtualKeyboard.Styles 1.3 で導入されました。
selectionListBackground : Component |
選択リストの背景のテンプレート。
selectionListDelegate : Component |
選択リスト項目のテンプレート。
注: デリゲートは、ListView で使用されます。
注: デリゲートは、SelectionListItem タイプに基づいている必要があります。
項目には以下のプロパティがあります:
display
現在の項目の表示テキスト。wordCompletionLength
表示テキストの末尾から測った単語完了の長さ。dictionary
単語の辞書タイプ。 を参照。QVirtualKeyboardSelectionListModel::DictionaryTypecanRemoveSuggestion
単語を辞書から削除できるかどうかを示すブール値。
selectionListHeight : real |
選択リストの高さ。
selectionListHighlight : Component |
選択リストのハイライトのテンプレート。
注: デリゲートはListView.highlight
として使用されます。
selectionListRemove : Transition |
このプロパティは、選択リストビューから削除されたアイテムに適用する遷移を保持する。
このプロパティは、QtQuick.VirtualKeyboard.Styles 1.3 で導入されました。
traceCanvasDelegate : Component |
Traceオブジェクトをレンダリングするためのテンプレート。
注 : デリゲートは、TraceCanvas タイプに基づいている必要があります。
このプロパティは QtQuick.VirtualKeyboard.Styles 2.1 で導入されました。
traceInputKeyPanelDelegate : Component |
トレース入力キーのテンプレート。
注: デリゲートは、TraceInputKeyPanel タイプに基づいている必要があります。
このプロパティは QtQuick.VirtualKeyboard.Styles 2.1 で導入されました。
© 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.