EnterKeyAction QML Type
エンターキーをカスタマイズするための付属プロパティを提供します。詳細...
| Import Statement: | import QtQuick.VirtualKeyboard |
付属プロパティ
詳細説明
EnterKeyAction 型は、キーボードの Enter キー・ボタンをカスタマイズするための付属プロパティを提供します。
EnterKeyAction は、入力フォーカスを受けているアイテムの内部で直接使用する必要があります(TextInput など)。
例えば
TextInput { id: myInput EnterKeyAction.enabled: myInput.text.length > 0 || myInput.inputMethodComposing EnterKeyAction.label: "Next" Keys.onReleased: { if (event.key === Qt.Key_Return) { // execute action } } }
付属プロパティのドキュメント
EnterKeyAction.actionId : int
仮想キーボードのエンターキーのアクションIDを設定します。アクションIDが設定されると、ラベルが優先され、Enterキーのアイコンが設定されます。
EnterKeyAction.Noneアクションは定義されていません。EnterKeyAction.Goアクションは囲碁の操作を行います。例えば、入力されたURLにユーザーを移動させます。EnterKeyAction.Search検索を実行するアクションEnterKeyAction.Send入力されたテキストを送信するアクションEnterKeyAction.Nextアクションは、テキスト入力を受け付ける次のフィールドに入力フォーカスを移動する。EnterKeyAction.DoneEnterKeyAction.Nextと同じですが、すべてのテキスト入力が行われます。
EnterKeyAction.enabled : bool
仮想キーボードのエンターキーボタンを有効または無効にする。
EnterKeyAction.label : string
仮想キーボードのエンターキーのラベルを設定します。
© 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.