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) |
Since: | 5.83 |
Inherits: | QGesture |
Properties
Public Functions
KTwoFingerTap(QObject *parent = nullptr) | |
QPointF | pos() const |
QPointF | scenePos() const |
QPointF | screenPos() const |
void | setPos(QPointF pos) |
void | setScenePos(QPointF scenePos) |
void | setScreenPos(QPointF screenPos) |
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:
scenePos : QPointF
Access functions:
QPointF | scenePos() const |
void | setScenePos(QPointF scenePos) |
screenPos : QPointF
Access functions:
QPointF | screenPos() const |
void | setScreenPos(QPointF screenPos) |
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().