KGuiAddons and QGestures like tap/click-and-hold to open context menu?

René J.V. Bertin rjvbertin at gmail.com
Sun Mar 12 21:08:32 UTC 2017


On Sunday March 12 2017 20:21:33 David Faure wrote:

> Forget QGesture, this can be done with simple mouse events.

Another solution: catch mouse events for the desired QWidget types, use QGesture::grabbedGesture to check if they are subscribed and if not subscribe them.

Re-implementing this from scratch in its most basic form isn't difficult, but getting all the border conditions right (like what to do when the mouse moves out of and back onto the widget) must be tedious at best.

R.


More information about the Kde-frameworks-devel mailing list