I have textInput box:
TextInput {
x: 5
y: 2
maximumLength: 16
width: maximumLength * 20
height: 17
focus: false
validator: RegExpValidator { regExp: /\d+/ }
KeyNavigation.down: amount
}
And a clear button.
When I click on clear button it should clear the text input box. How to do it?
You have to add the
idproperty to yourTextInputelement.And on the event click of your
MouseAreafor your clear button you can do: