EnterKeyAction QML Type
Proporciona propiedades adjuntas para personalizar la tecla enter. Más...
| Import Statement: | import QtQuick.VirtualKeyboard |
Propiedades adjuntas
Descripción detallada
El tipo EnterKeyAction proporciona propiedades adjuntas que permiten personalizar el botón de la tecla Intro del teclado.
El 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 propiedades adjuntas
EnterKeyAction.actionId : int
Establece el identificador de acción de la tecla Intro en el teclado virtual. Cuando se define el identificador de acción, tiene preferencia sobre la etiqueta y define el icono de la tecla Intro.
EnterKeyAction.NoneNo hay acción definida.EnterKeyAction.GoLa acción realiza la operación de ir. Por ejemplo, llevar al usuario a la URL introducida.EnterKeyAction.SearchLa acción realiza una operación de búsqueda.EnterKeyAction.SendLa acción envía el texto introducido.EnterKeyAction.NextLa acción mueve el foco de entrada al siguiente campo que acepta la entrada de texto.EnterKeyAction.DoneIgual queEnterKeyAction.Next, excepto que se introduce todo el texto.
EnterKeyAction.enabled : bool
Activa o desactiva el botón de la tecla intro en el teclado virtual.
EnterKeyAction.label : string
Establece la etiqueta para 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.