Qt3DInput::QWheelEvent Class
class Qt3DInput::QWheelEventLa clase QWheelEvent contiene parámetros que describen un evento de la rueda del ratón. Más información...
| Cabecera: | #include <Qt3DInput/QWheelEvent> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dinput) target_link_libraries(mytarget PRIVATE Qt6::3dinput) |
| qmake: | QT += 3dinput |
| En QML: | WheelEvent |
| Heredado de: | QObject |
| Estado: | Obsoleto |
Esta clase está obsoleta. Se desaconseja encarecidamente su uso en código nuevo.
Tipos públicos
| enum | Buttons { LeftButton, RightButton, MiddleButton, BackButton, NoButton } |
| enum | Modifiers { NoModifier, ShiftModifier, ControlModifier, AltModifier, MetaModifier, KeypadModifier } |
Propiedades
|
Funciones públicas
| 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 |
Personas no afiliadas relacionadas
Véase también QKeyEvent, QMouseEvent y QMouseHandler.
Documentación sobre tipos de miembros
enum QWheelEvent::Buttons
| Constante | Valor |
|---|---|
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 |
enum QWheelEvent::Modifiers
| Constante | Valor |
|---|---|
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 |
Documentación de propiedades
accepted : bool
Especifica si se ha aceptado el evento de la rueda del ratón
Funciones de acceso:
| bool | isAccepted() const |
| void | setAccepted(bool accepted) |
[read-only] angleDelta : const QPoint
Especifica el ángulo de giro de la rueda del ratón en el evento de la rueda
Funciones de acceso:
| QPoint | angleDelta() const |
[read-only] buttons : const int
Especifica el botón, si está presente, en el evento de la rueda del ratón
Funciones de acceso:
| int | buttons() const |
[read-only] modifiers : const Qt3DInput::QWheelEvent::Modifiers
Especifica si se ha aplicado algún modificador al evento de la rueda del ratón
Funciones de acceso:
| Qt3DInput::QWheelEvent::Modifiers | modifiers() const |
[read-only] x : const int
Especifica la coordenada X del evento de la rueda del ratón
Funciones de acceso:
| int | x() const |
[read-only] y : const int
Especifica la coordenada Y del evento de la rueda del ratón
Funciones de Access:
| int | y() const |
Documentación de las funciones de miembro
[explicit] QWheelEvent::QWheelEvent(const QWheelEvent &e)
Crea una nueva instancia de QWheelEvent a partir del objeto QWheelEvent « e ».
QPoint QWheelEvent::angleDelta() const
Devuelve la distancia a la que se ha girado la rueda, en octavos de grado. Un valor positivo indica que la rueda se ha girado hacia delante (alejándose del usuario), mientras que un valor negativo indica que se ha girado hacia atrás (acercándose al usuario).
Nota: Funcióngetter para la propiedad angleDelta.
int QWheelEvent::buttons() const
Devuelve un campo de bits que se utiliza para comprobar qué botones del ratón pueden estar activados junto con el evento de la rueda.
Nota: Funcióngetter para la propiedad «buttons».
bool QWheelEvent::isAccepted() const
Devuelve si se ha aceptado el evento.
Nota: Funcióngetter para la propiedad « accepted ».
Qt3DInput::QWheelEvent::Modifiers QWheelEvent::modifiers() const
Devuelve los modificadores del teclado que pueden acompañar al evento de la rueda.
Nota: Funcióngetter para la propiedad modifiers.
void QWheelEvent::setAccepted(bool accepted)
Establece el evento como aceptado si « accepted » es verdadero.
Nota: Cuando se acepta un evento, se impide que este se propague a otros oyentes.
Nota: Funciónde configuración para la propiedad accepted.
Véase también isAccepted().
QEvent::Type QWheelEvent::type() const
Devuelve el objeto ` QEvent::Type ` del evento.
int QWheelEvent::x() const
Devuelve la posición x del evento del ratón.
Nota: Funcióngetter para la propiedad x.
int QWheelEvent::y() const
Devuelve la posición x del evento del ratón.
Nota: Funcióngetter para la propiedad y.
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.