EnterKeyAction QML Type
Fornisce proprietà associate per la personalizzazione del tasto Invio. Altro...
| Import Statement: | import QtQuick.VirtualKeyboard |
Proprietà associate
Descrizione dettagliata
Il tipo EnterKeyAction fornisce proprietà associate che consentono di personalizzare il tasto Invio della tastiera.
EnterKeyAction deve essere utilizzato direttamente all'interno dell'elemento che riceve il focus di input, ad esempio TextInput.
Ad esempio:
TextInput {
id: myInput
EnterKeyAction.enabled: myInput.text.length > 0 || myInput.inputMethodComposing
EnterKeyAction.label: "Next"
Keys.onReleased: {
if (event.key === Qt.Key_Return) {
// execute action
}
}
}Documentazione sulle proprietà associate
EnterKeyAction.actionId : int [attached]
Imposta l'ID dell'azione per il tasto Invio nella tastiera virtuale. Una volta impostato, l'ID dell'azione ha la precedenza sull'etichetta e definisce l'icona del tasto Invio.
EnterKeyAction.NoneNessuna azione definita.EnterKeyAction.GoL'azione esegue l'operazione "Vai a". Ad esempio, reindirizza l'utente all'URL inserito.EnterKeyAction.SearchL'azione esegue l'operazione di ricerca.EnterKeyAction.SendL'azione invia il testo inserito.EnterKeyAction.NextL'azione sposta il focus di input sul campo successivo che accetta l'inserimento di testo.EnterKeyAction.DoneÈ identico a "EnterKeyAction.Next", tranne per il fatto che l'inserimento del testo è già stato completato.
EnterKeyAction.enabled : bool [attached]
Attiva o disattiva il tasto "Invio" nella tastiera virtuale.
EnterKeyAction.label : string [attached]
Imposta l'etichetta del tasto Invio nella tastiera virtuale.
© 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.