Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doubleclick does not handle single click #7

Open
Algorithmus opened this issue Apr 16, 2022 · 0 comments
Open

doubleclick does not handle single click #7

Algorithmus opened this issue Apr 16, 2022 · 0 comments
Labels

Comments

@Algorithmus
Copy link

At least in qt6, this is happening. When you click on the clickable frame the first time, single click registers like it should. If you click a second time, the double click handler catches the event instead of the single click, and it's not propagated to mousePressEvent at all. It doesn't matter how long you wait, the double click handler still catches the second click. The only time it doesn't is if you move the mouse off of the clickable frame.

The fix is to call the base implementation of mouseDoubleClickEvent instead of just ignoring the event.

Appears to be compatible with qt5 anyways.

@crapp crapp added the bug label Jul 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants