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