EnterKey QML Type

提供一个属性,用于操作屏幕键盘上回车键的外观。更多

Import Statement: import QtQuick

附加属性

  • type : enumeration

详细说明

EnterKey 附加属性用于操作屏幕键盘上 Enter 键的外观和行为。

附加属性文档

EnterKey.type : enumeration

表示 Enter 键的类型。

注意: 并非所有平台都支持所有这些值。对于不支持的值,将使用默认按键。

常量说明
Qt.EnterKeyDefault默认回车键。可以是接受输入并关闭键盘的按钮,也可以是在多行输入框中输入换行符的回车键
Qt.EnterKeyReturn显示可插入换行符的Return按钮。
Qt.EnterKeyDone显示"完成 "按钮。通常情况下,按下按钮后键盘会关闭。
Qt.EnterKeyGo显示"转到 "按钮。通常用于输入 URL 时的地址栏。
Qt.EnterKeySend显示"发送 "按钮。
Qt.EnterKeySearch显示"搜索 "按钮。
Qt.EnterKeyNext显示"下一步 "按钮。通常用于表单中,以便在不关闭键盘的情况下导航到下一个输入框。
Qt.EnterKeyPrevious显示"上一个 "按钮

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