Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TextField {
- placeholderText: "enter text here..."
- inputMethodHints: Qt.ImhNoAutoUppercase
- onTextChanged:
- console.log("text changed >> " + text)
- Keys.onReturnPressed: { // when I press `DONE` button at virtual keyboard.
- // here I want to make `text` accepted.
- console.log("yap. trying to accept focken text entered!")
- console.log("text before changes >> " + text)
- Qt.inputMethod.hide();
- console.log("after -HIDE- >> " + text)
- accepted()
- console.log("after -accepted- >> " + textField.text)
- editingFinished()
- console.log("after -editing finished- >> " + textField.text)
- console.log("yap. leaving out ---<<<<!")
- }
- }
- qml: yap. trying to accept focken text entered!
- qml: text before changes >>
- qml: after -HIDE- >>
- qml: after -accepted- >>
- qml: after -editing finished- >>
- qml: yap. leaving out ---<<<<!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement