Il 05/11/20 05:38, David M. Cotter ha scritto:
when scrolling, the scroll for my app is a bit sluggish (do not ask about that) which means that mouse wheel scroll events can pile up in the queue while the first scroll event is being processed. meaning that a dozen more*slow* events get handled after the user stops scrolling.what i want to do is: when i get a wheel scroll event, at that moment i see if there are MORE scroll events in the queue. if not, i just handle this event. but if there ARE i want to get the most recent one, and handle only that ONE event, while purging the rest.
There is some sort of input event compression available through application flags. For the rest, you could just not act on events that happen too close together (either wait a bit before acting, so to get N events, or act on the first one and ignore the subsequent ones in a short time frame).
But there's just no public access to the pending event queue. HTH, -- Giuseppe D'Angelo | giuseppe.dang...@kdab.com | Senior Software Engineer KDAB (France) S.A.S., a KDAB Group company Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com KDAB - The Qt, C++ and OpenGL Experts
smime.p7s
Description: Firma crittografica S/MIME
_______________________________________________ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest