When the QPushButton is clicked continuously on the Android platform, the release event cannot be triggered
-
I used QT buttons on Android platform. I found that there is a certain probability that the button will not trigger the release event when I press the button or click the button quickly. It is always in the press event. Do you have any solutions?
-
Hi and welcome to the forums.
What Qt version are you seeing this with ?Also, did you test it with a sample that does nothing but QDebug() in both pressed and released to be sure you are not blocking the event loop ?
-
@JoeCFD said in When the QPushButton is clicked continuously on the Android platform, the release event cannot be triggered:
QEvent::TouchEnd
Yes, touch screen,Please tell me how to ensure that the button will pop up after the hand is raised. Can you give me an example -
@mrjj
When the button is pressed and released, the start and stop messages will be sent. In addition, nothing else will be done. Then the button status image is changed through the style sheet. It is suspected that the release event is not triggered by the underlying Android -
@good_hearted can you see button release event with EventFilter? Normally both events will be sent out.