このページでは

EnterKeyAction QML Type

Enterキーをカスタマイズするための関連プロパティを提供します。詳細...

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 [attached]

仮想キーボードのEnterキーのアクションIDを設定します。アクションIDが設定されている場合、ラベルよりも優先され、Enterキーのアイコンが設定されます。

  • EnterKeyAction.None アクションは定義されていません。
  • EnterKeyAction.Go このアクションは「移動」操作を実行します。たとえば、ユーザーを入力したURLへ移動させます。
  • EnterKeyAction.Search このアクションは検索操作を実行します。
  • EnterKeyAction.Send アクションが入力されたテキストを送信します。
  • EnterKeyAction.Next このアクションは、入力可能な次のフィールドへ入力フォーカスを移動させます。
  • EnterKeyAction.Done EnterKeyAction.Next と同様ですが、すべてのテキスト入力が完了している点が異なります。

EnterKeyAction.enabled : bool [attached]

仮想キーボードのEnterキーを有効または無効にします。

EnterKeyAction.label : string [attached]

仮想キーボードのEnterキーのラベルを設定します。

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