About a signal which will be handled in TextEdit area
-
Child or overlapping first MouseArea? If you mean overlapping then please use Search. It was dicussed in couple of threads some time ago
-
in my code ,i difined a mousearea in TextEdit,the mousearea handle a click singal,but after the singal be handled,i can't input to the TextEdit area
-
You're working in QML? I only see a mouse area in QML. It sounds to me like, you are eating the event in your handler. Maybe, you should handle it and pass it on to the parent. You could do that with an
@event->ignore();@ -
in my codes,i defined a onClicked:{}in TextEdit,after the singal is handled ,how to cancel it ?because when carry out the onClicked:{},the TextEdit can not input
-
What do you mean by canceling the signal? Maybe it would help to include some code so people can see what goes wrong.
By the way, it's spelled signal not singal.
-
@
TextEdit{MouseArea{ anchors.fill:parent onClicked:{ 、、、、、 } } }
@ after the signal has been handled,the TextEdit can not input
-
After handling inside your onClicked, may be you need to pass the events to TextEdit's onClicked for it to handle. Don't know how to do it.
By handling onClicked() in your code, you are preventing default onClicked inside TextEdit.
-
-
after handled the onClicked{}defined by myself,how to recover to the default handle about Click signal in TextEdit
-
Can you try out
@
MouseArea {
Connections {
onClicked: onClickedHandler()
}
}@Now implement your onClickedHandler function.
I don't know if this works, but worth a try. -
follow you advice,i did a test,but it does not work!
-
I've merged your three posts. Please don't create similar posts again.
-
Can you post this question to "TROLLS" and see their response. And do let us know their response :)
-
Vijay, it was asked and response is somewhere in this forum. Try to use search.