How to handle multiple click event at same time?
-
In my application i use clickable label and capture video button. when i use both at same time my application is going to hang. what should i need to do to avoid application hang issue ?
-
@Qt-embedded-developer
Nobody can answer from such a vague description. And also, FWIW, you can't have multiple clicks at the same time, one click comes after the other.... -
@Qt-embedded-developer
Sorry, but I cannot say any more about a situation which is so vague, "it depends". I will leave others to answer if they feel they can without further information.Don't forget --- may or may not be relevant to your situation --- that Qt processes events/signals/slots sequentially from the event queue. One slot will complete before the next slot is invoked.
-
How is that hardware button handled in your application ?
What does it trigger ? -
Hence my question: how does the hardware trigger that in your application ?
By the way, why a label ? That does not sound like a good control for performing actions on a video recording application.
-
Your application hang means crash? or just cannot to anything?
if the situation is later, I think you need to anyother thread to process your video issue.
You need to use qtconcurrent to capture your video.
If you use main thread to capture the video, your application can't do other thing(ex:detect click)