TextField vs MouseArea clicking event difference
-
MouseArea { onClicked: { console.log("clicked") } onPressAndHold: { console.log("pressAndHold") } onReleased: { console.log("released") } }
when holding, it only shows "pressAndHold" and on release it shows "released", and when singleclick it shows "clicked" and "released"... this is correct behaviour
TextField { onPressed: { console.log("pressed") } onPressAndHold: { console.log("pressAndHold") } onReleased: { console.log("released") } }
when holding, it first shows first "press" and after that it shows "pressAndHold" and on release it dost not show anything (it shall shows "released") !!!, and when singleclick it shows "pressed" and "released"
In best case scenario, I would like the TextField to behave the same way as MouseArea... is this by design?
is there a way to set the TextField mouseclicks events the same way as MouseArea?this behaviour is in 6.6.1, win64 build, tested on Android emulator as well as MinGW