The QWheelEvent class contains parameters that describe a mouse wheel event. 更多...
头: | #include <Qt3DInput/QWheelEvent> |
qmake: | QT += 3dinput |
Since: | Qt 5.5 |
实例化: | WheelEvent |
继承: | QObject |
该类在 Qt 5.5 引入。
enum | Buttons { LeftButton, RightButton, MiddleButton, BackButton, NoButton } |
enum | Modifiers { NoModifier, ShiftModifier, ControlModifier, AltModifier, MetaModifier, KeypadModifier } |
|
QWheelEvent (const ::QWheelEvent & e ) | |
QPoint | angleDelta () const |
int | buttons () const |
bool | isAccepted () const |
Qt3DInput::QWheelEvent::Modifiers | modifiers () const |
void | setAccepted (bool accepted ) |
QEvent::Type | type () const |
int | x () const |
int | y () const |
typedef | QWheelEventPtr |
Mouse wheel events occur when the mouse is rotated.
另请参阅 QKeyEvent , QMouseEvent ,和 QMouseHandler .
常量 | 值 |
---|---|
Qt3DInput::QWheelEvent::LeftButton
|
Qt::LeftButton
|
Qt3DInput::QWheelEvent::RightButton
|
Qt::RightButton
|
Qt3DInput::QWheelEvent::MiddleButton
|
Qt::MiddleButton
|
Qt3DInput::QWheelEvent::BackButton
|
Qt::BackButton
|
Qt3DInput::QWheelEvent::NoButton
|
Qt::NoButton
|
常量 | 值 |
---|---|
Qt3DInput::QWheelEvent::NoModifier
|
Qt::NoModifier
|
Qt3DInput::QWheelEvent::ShiftModifier
|
Qt::ShiftModifier
|
Qt3DInput::QWheelEvent::ControlModifier
|
Qt::ControlModifier
|
Qt3DInput::QWheelEvent::AltModifier
|
Qt::AltModifier
|
Qt3DInput::QWheelEvent::MetaModifier
|
Qt::MetaModifier
|
Qt3DInput::QWheelEvent::KeypadModifier
|
Qt::KeypadModifier
|
Specifies if the mouse wheel event has been accepted
访问函数:
bool | isAccepted () const |
void | setAccepted (bool accepted ) |
Specifies The change wheel angle of the mouse wheel event
访问函数:
QPoint | angleDelta () const |
Specifies the button if present in the mouse wheel event
访问函数:
int | buttons () const |
Specifies if any modifiers were applied to the mouse wheel event
访问函数:
Qt3DInput::QWheelEvent::Modifiers | modifiers () const |
Specifies The X coordinate of the mouse wheel event
访问函数:
int | x () const |
Specifies The Y coordinate of the mouse wheel event
访问函数:
int | y () const |
Constructs a new QWheelEvent instance from the QWheelEvent e .
Returns the distance that the wheel is rotated, in eighths of a degree. A positive value indicates that the wheel was rotated forward (away from the user), a negative value indicates the wheel was rotated backward (toward the user).
注意: getter 函数对于特性 angleDelta。
Returns a bitfield to be used to check for mouse buttons that may be accompanying the wheel event.
注意: Getter function for property buttons.
Returns whether the event was accepted.
注意: getter 函数对于特性 accepted .
Returns the keyboard modifiers that may be accompanying the wheel event.
注意: Getter function for property modifiers.
Sets the event as accepted if accepted 为 true。
注意: When an event is accepted, it will prevent further propagation to other listeners.
注意: setter 函数对于特性 accepted .
另请参阅 isAccepted ().
返回 QEvent::Type of the event.
Returns the x position of the mouse event.
注意: Getter function for property x.
Returns the x position of the mouse event.
注意: Getter function for property y.
共享指针为 QWheelEvent .