PinchGestureHandler QML Type

The PinchGestureHandler type provides a way to handle global pinch gestures. More...

Import Statement: import org.kde.kwin

Properties

Signals

Detailed Description

Example usage:

PinchGestureHandler {
    direction: PinchGestureHandler.Direction.Contracting
    fingerCount: 3
    onActivated: console.log("activated")
}

Property Documentation

direction : enumeration

This property specifies whether the fingers should contract or expand. The default value is Direction::Contracting.

ConstantDescription
PinchGestureHandler.ExpandingFingers should expand for the pinch gesture.
PinchGestureHandler.ContractingFingers should contract for the pinch gesture.

fingerCount : int

This property specifies the required number of fingers for pinch recognition.


progress : real

This property specifies the progress of the pinch gesture. The progress ranges from 0.0 to 1.0.


Signal Documentation

activated()

This signal is emitted when the pinch gesture is triggered, i.e. the progress() reaches 1.0.

Note: The corresponding handler is onActivated.


cancelled()

This signal is emitted when the pinch gesture is cancelled. A pinch gesture can be cancelled if the user lifts their fingers or moves the fingers in a different direction, etc.

Note: The corresponding handler is onCancelled.