Pages
API Documentation
On this page

KTwoFingerTap Class

A two finger tap gesture. More...

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

List of all members, including inherited members

Properties

Public Functions

Detailed Description

Provides a class for a two finger tap gesture.

Note: The QGestureManager need a QMainwindow, to delivery the gesture.

Property Documentation

pos : QPointF

Access functions:

  • QPointF pos() const
  • void setPos(QPointF pos)

scenePos : QPointF

Access functions:

screenPos : QPointF

Access functions:

Member Function Documentation

[explicit] KTwoFingerTap::KTwoFingerTap(QObject *parent = nullptr)

The constructor.

QPointF KTwoFingerTap::pos() const

The position of the gesture, relative to the widget that received the gesture.

Note: This is not necessarily the same position as in the widget that grabGesture() uses.

Note: Getter function for property pos.

See also setPos()

QPointF KTwoFingerTap::scenePos() const

Return the start scene position of the gesture.

Note: Getter function for property scenePos.

See also setScenePos()

QPointF KTwoFingerTap::screenPos() const

Sets the screen position.

screenPos The screen position.

Note: Getter function for property screenPos.

See also setScreenPos()

void KTwoFingerTap::setPos(QPointF pos)

Sets the position, relative to the widget.

pos The position.

Note: Setter function for property pos.

See also pos()

void KTwoFingerTap::setScenePos(QPointF scenePos)

Sets the scene position.

scenePos The scene position, identical to the screen position for widgets.

Note: Setter function for property scenePos.

See also scenePos()

void KTwoFingerTap::setScreenPos(QPointF screenPos)

Return the start scene position of the gesture.

Note: Setter function for property screenPos.

See also screenPos()

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