Pages
API Documentation
On this page

KTwoFingerTapRecognizer Class

The recognizer for a two finger tap gesture. More...

  • Header: #include <KTwoFingerTap>
  • CMake: find_package(KF6 REQUIRED COMPONENTS WidgetsAddons)
    target_link_libraries(mytarget PRIVATE KF6::WidgetsAddons)
  • Inherits: QGestureRecognizer

List of all members, including inherited members

Public Functions

Detailed Description

Provides the recognizer for a two finger tap gesture.

Member Function Documentation

KTwoFingerTapRecognizer::KTwoFingerTapRecognizer()

The constructor.

[override virtual] QGesture *KTwoFingerTapRecognizer::create(QObject *target)

Reimplements: QGestureRecognizer::create(QObject *target).

Qt called this member to create a new QGesture object.

target The target for the gesture.

Returns the new QGesture object.

[override virtual] QGestureRecognizer::Result KTwoFingerTapRecognizer::recognize(QGesture *gesture, QObject *watched, QEvent *event)

Reimplements: QGestureRecognizer::recognize(QGesture *gesture, QObject *watched, QEvent *event).

Handles the given event for the watched object and update the gesture object.

gesture The gesture object.

watched The watched object.

event The event.

Returns the result reflects how much of the gesture has been recognized.

void KTwoFingerTapRecognizer::setTapRadius(int i)

Set the maximum wiggle room for a touch point. If i is negative, it will be set to null.

i The maximum wiggle room.

See also tapRadius()

int KTwoFingerTapRecognizer::tapRadius() const

Returns the maximum wiggle room for a touch point.

See also setTapRadius()

We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.