EnterKeyAction QML Type
Enter 키를 사용자 정의할 수 있는 부가 속성을 제공합니다. 더 보기...
| Import Statement: | import QtQuick.VirtualKeyboard |
부속 속성
상세 설명
EnterKeyAction 유형은 키보드의 Enter 키 버튼을 사용자 지정할 수 있도록 하는 부착 속성을 제공합니다.
EnterKeyAction은 입력 포커스를 받는 항목(예: TextInput) 내에서 직접 사용해야 합니다.
예:
TextInput {
id: myInput
EnterKeyAction.enabled: myInput.text.length > 0 || myInput.inputMethodComposing
EnterKeyAction.label: "Next"
Keys.onReleased: {
if (event.key === Qt.Key_Return) {
// execute action
}
}
}부속 속성 문서
EnterKeyAction.actionId : int [attached]
가상 키보드의 Enter 키에 대한 액션 ID를 설정합니다. 액션 ID가 설정되면 레이블보다 우선 적용되어 Enter 키의 아이콘이 설정됩니다.
EnterKeyAction.None정의된 액션이 없습니다.EnterKeyAction.Go이 액션은 이동 작업을 수행합니다. 예를 들어, 사용자가 입력한 URL로 이동시킵니다.EnterKeyAction.Search이 액션은 검색 작업을 수행합니다.EnterKeyAction.Send이 액션은 입력된 텍스트를 전송합니다.EnterKeyAction.Next이 액션은 입력 포커스를 텍스트 입력이 가능한 다음 필드로 이동시킵니다.EnterKeyAction.DoneEnterKeyAction.Next와 동일하지만, 모든 텍스트 입력이 완료된 경우에만 적용됩니다.
EnterKeyAction.enabled : bool [attached]
가상 키보드의 Enter 키 기능을 켜거나 끕니다.
EnterKeyAction.label : string [attached]
가상 키보드의 Enter 키에 표시될 레이블을 설정합니다.
© 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.