Advertisement
Guest User

Untitled

a guest
Jul 7th, 2015
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. TextField {
  2. placeholderText: "enter text here..."
  3. inputMethodHints: Qt.ImhNoAutoUppercase
  4. onTextChanged:
  5. console.log("text changed >> " + text)
  6. Keys.onReturnPressed: { // when I press `DONE` button at virtual keyboard.
  7. // here I want to make `text` accepted.
  8. console.log("yap. trying to accept focken text entered!")
  9. console.log("text before changes >> " + text)
  10. Qt.inputMethod.hide();
  11. console.log("after -HIDE- >> " + text)
  12. accepted()
  13. console.log("after -accepted- >> " + textField.text)
  14. editingFinished()
  15. console.log("after -editing finished- >> " + textField.text)
  16. console.log("yap. leaving out ---<<<<!")
  17. }
  18. }
  19.  
  20. qml: yap. trying to accept focken text entered!
  21. qml: text before changes >>
  22. qml: after -HIDE- >>
  23. qml: after -accepted- >>
  24. qml: after -editing finished- >>
  25. qml: yap. leaving out ---<<<<!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement