[Interest] Sequence of events in a double click
Schimkowitsch Robert
Robert.Schimkowitsch at andritz.com
Wed Sep 3 11:20:57 CEST 2025
Hi all,
when you perform a double click on a mouse button (=pressing and releasing the mouse button in fast sequence twice), I have, over many years, always expected this sequence:
ButtonPress
ButtonRelease
ButtonDoublePress
ButtonDoubleRelease
It is consistent with what I get when I trace the window events using Spy++ (on Windows, for context) on a simple application (not my own, since Spy++ crashes when encountering the hooks of a serious Qt application, and I currently don’t have a good replacement tool).
However, in my Qt 6.8.2 application using a window event filter, I receive the following sequence:
ButtonPress
ButtonRelease
ButtonPress
ButtonDoublePress
ButtonDoubleRelease
The extra press confuses me. Is this as it should be?
Kind regards
Robert
________________________________
This message and any attachments are solely for the use of the intended recipients. They may contain privileged and/or confidential information or other information protected from disclosure. If you are not an intended recipient, you are hereby notified that you received this email in error and that any review, dissemination, distribution or copying of this email and any attachment is strictly prohibited. If you have received this email in error, please contact the sender and delete the message and any attachment from your system.
ANDRITZ HYDRO GmbH
Rechtsform/ Legal form: Gesellschaft mit beschränkter Haftung / Corporation
Firmensitz/ Registered seat: Wien
Firmenbuchgericht/ Court of registry: Handelsgericht Wien
Firmenbuchnummer/ Company registration: FN 61833 g
DVR: 0605077
UID-Nr.: ATU14756806
Thank You
________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20250903/323f80ee/attachment.htm>
More information about the Interest
mailing list