QmlMaterial 0.1.0
Loading...
Searching...
No Matches
KirigamiWheelEvent Class Reference

#include <qml_material/kirigami/wheelhandler.h>

Properties

qreal x
 
qreal y
 
QPointF angleDelta
 
QPointF pixelDelta
 
int buttons
 
int modifiers
 
bool inverted
 
bool accepted
 

Detailed Description

Describes the mouse wheel event

Property Documentation

◆ accepted

bool KirigamiWheelEvent::accepted
readwrite

accepted: bool

If set, the event shouldn't be managed anymore, for instance it can be used to block the handler to manage the scroll of a view on some scenarios

// This handler handles automatically the scroll of
// flickableItem, unless Ctrl is pressed, in this case the
// app has custom code to handle Ctrl+wheel zooming
Kirigami.WheelHandler {
target: flickableItem
blockTargetWheel: true
scrollFlickableTarget: true
onWheel: {
if (wheel.modifiers & Qt.ControlModifier) {
wheel.accepted = true;
// Handle scaling of the view
}
}
}

◆ angleDelta

QPointF KirigamiWheelEvent::angleDelta
read

angleDelta: point

The distance the wheel is rotated in degrees. The x and y coordinates indicate the horizontal and vertical wheels respectively. A positive value indicates it was rotated up/right, negative, bottom/left This value is more likely to be set in traditional mice.

◆ buttons

int KirigamiWheelEvent::buttons
read

buttons: int

it contains an OR combination of the buttons that were pressed during the wheel, they can be: Qt.LeftButton, Qt.MiddleButton, Qt.RightButton

◆ inverted

bool KirigamiWheelEvent::inverted
read

inverted: bool

Whether the delta values are inverted On some platformsthe returned delta are inverted, so positive values would mean bottom/left

◆ modifiers

int KirigamiWheelEvent::modifiers
read

modifiers: int

Keyboard mobifiers that were pressed during the wheel event, such as: Qt.NoModifier (default, no modifiers) Qt.ControlModifier Qt.ShiftModifier ...

◆ pixelDelta

QPointF KirigamiWheelEvent::pixelDelta
read

pixelDelta: point

provides the delta in screen pixels available on high resolution trackpads

◆ x

qreal KirigamiWheelEvent::x
read

x: real

X coordinate of the mouse pointer

◆ y

qreal KirigamiWheelEvent::y
read

y: real

Y coordinate of the mouse pointer


The documentation for this class was generated from the following files: