EnterKeyAction QML Type
Ofrece propiedades asociadas para personalizar la tecla Intro. Más...
| Import Statement: | import QtQuick.VirtualKeyboard |
Propiedades asociadas
Descripción detallada
El tipo EnterKeyAction proporciona propiedades asociadas que permiten personalizar la tecla Intro del teclado.
EnterKeyAction debe utilizarse directamente dentro del elemento que recibe el foco de entrada, por ejemplo, TextInput.
Por ejemplo:
TextInput {
id: myInput
EnterKeyAction.enabled: myInput.text.length > 0 || myInput.inputMethodComposing
EnterKeyAction.label: "Next"
Keys.onReleased: {
if (event.key === Qt.Key_Return) {
// execute action
}
}
}Documentación de las propiedades adjuntas
EnterKeyAction.actionId : int [attached]
Establece el identificador de acción de la tecla «Intro» en el teclado virtual. Cuando se establece el identificador de acción, este tiene prioridad sobre la etiqueta y determina el icono de la tecla «Intro».
EnterKeyAction.NoneNo hay ninguna acción definida.EnterKeyAction.GoLa acción realiza la operación «Ir a». Por ejemplo, lleva al usuario a la URL introducida.EnterKeyAction.SearchLa acción realiza la operación de búsqueda.EnterKeyAction.SendLa acción envía el texto introducido.EnterKeyAction.NextLa acción desplaza el foco de entrada al siguiente campo que admita la introducción de texto.EnterKeyAction.DoneEs igual que «EnterKeyAction.Next», salvo que toda la entrada de texto ya se ha realizado.
EnterKeyAction.enabled : bool [attached]
Activa o desactiva la tecla «Intro» del teclado virtual.
EnterKeyAction.label : string [attached]
Establece la etiqueta de la tecla «Intro» en el teclado virtual.
© 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.