Problems with Open-Source Downloads read https://www.qt.io/blog/problem-with-open-source-downloads and https://forum.qt.io/post/638946
How to handle multiple click event at same time?
Qt embedded developer last edited by Qt embedded developer
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 ?
JonB last edited by
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....
@JonB if one process is in progress and other event trigger at that time what i need to do ?
should i have to disable the button or assign priority and not allow other process to get trigger ?
JonB last edited by
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.
You should explain exactly what both triggers.
As @JonB already wrote two things cannot happen exactly at the same time.
1] capture video button is capturing video. this button is hardware button which capturing image and video on click of it.
2] clickable label is creating new session on click of it.
How is that hardware button handled in your application ?
What does it trigger ?
@SGaist hardware button is start video capturing so my video recording get started.
during recording if clickable label i click then current recording get stop and new recording get started
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.
Shao last edited by Shao
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)