本页内容

EnterKey QML Type (Uncreatable)

提供了一个属性,用于控制屏幕键盘上“Enter”键的外观。更多...

Import Statement: import QtQuick

注意:这是一个不可创建的类型。无法在 QML 中对其进行实例化。

附加属性

  • type : enumeration

详细说明

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

附加属性文档

EnterKey.type : enumeration [attached]

存储“Enter”键的类型。

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

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

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