On Monday August 15 2022 04:46:46 Koeame wrote:

>Alright, is there a way to turn Plasma-Touch off or anything like
>that, assuming the long-clicking is tied to it? That could be a way to
>disable the annoying long-clicking I'm doing. Apologies for the wording,
>I'm not tech-savvy.

Is there is a dedicated touch*screen* configuration panel in 
SystemSettings/Input Devices? NB: touch*pad* is the trackpad, if you have one 
of those too. If not, or if that panel is of no help:

If Duncan is right and you're running into a Plasma "feature" which cannot at 
the moment be configured there are basically 2 options 
- your distro packages the touch-interface in an optional package. Uninstall 
that. Plasma should lose support for using your panel for its own features but 
you still have the device drivers installed so it should still work at the 
system level
- set up another DE and use that instead of Plasma. Most environments allow 
changing the window manager so if you're fond of KWin and its widget styling 
you can still use that. And of course your KDE applications will continue to 
work.

FWIW I've written a long-press-for-contextmenu feature myself using Qt's 
tap-and-hold gesture, but only on certain widgets. I do think it triggers in 
about 1s so that must be a Qt constant. And indeed:
> /*!
> 
>     Set the timeout, in milliseconds, before the gesture triggers.
>     
>     The recognizer will detect a touch down and if \a msecs
>     later the touch is still down, it will trigger the QTapAndHoldGesture.
>     The default value is 700 milliseconds.
> 
> */
> void QTapAndHoldGesture::setTimeout(int msecs)
> {
> 
>     QTapAndHoldGesturePrivate::Timeout = msecs;
> 
> }

R

Reply via email to