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 |
仮想キーボードの Enter キーのアクション ID を設定します。アクションIDが設定されると、ラベルよりも優先され、Enterキーのアイコンが設定されます。
EnterKeyAction.None
アクションは定義されていません。EnterKeyAction.Go
アクションは囲碁の操作を行います。例えば、ユーザーを入力されたURLに移動させます。EnterKeyAction.Search
検索を実行するアクションEnterKeyAction.Send
入力されたテキストを送信するアクションEnterKeyAction.Next
アクションは、テキスト入力を受け付ける次のフィールドに入力フォーカスを移動する。EnterKeyAction.Done
EnterKeyAction.Next
と同じですが、すべてのテキスト入力が行われます。
EnterKeyAction.enabled : bool |
仮想キーボードのエンターキーボタンを有効または無効にします。
EnterKeyAction.label : string |
仮想キーボードの Enter キーのラベルを設定します。
© 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.