このページでは

Qt3DInput::QWheelEvent Class

class Qt3DInput::QWheelEvent

QWheelEvent クラスには、マウスホイールイベントを表すパラメータが含まれています。詳細...

ヘッダー: #include <Qt3DInput/QWheelEvent>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dinput)
target_link_libraries(mytarget PRIVATE Qt6::3dinput)
qmake: QT += 3dinput
QML内: WheelEvent
継承元: QObject
ステータス: 非推奨

このクラスは非推奨です。新しいコードでの使用は強く推奨しません。

パブリック型

enum Buttons { LeftButton, RightButton, MiddleButton, BackButton, NoButton }
enum Modifiers { NoModifier, ShiftModifier, ControlModifier, AltModifier, MetaModifier, KeypadModifier }

プロパティ

  • modifiers : const Qt3DInput::QWheelEvent::Modifiers
  • x : const int
  • y : const int

公開関数

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

詳細な説明

マウスホイールイベントは、マウスを回転させたときに発生します。

QKeyEvent 、QMouseEvent 、およびQMouseHandlerも参照してください 。

メンバ型のドキュメント

enum QWheelEvent::Buttons

定数定数
Qt3DInput::QWheelEvent::LeftButtonQt::LeftButton
Qt3DInput::QWheelEvent::RightButtonQt::RightButton
Qt3DInput::QWheelEvent::MiddleButtonQt::MiddleButton
Qt3DInput::QWheelEvent::BackButtonQt::BackButton
Qt3DInput::QWheelEvent::NoButtonQt::NoButton

enum QWheelEvent::Modifiers

定数定数
Qt3DInput::QWheelEvent::NoModifierQt::NoModifier
Qt3DInput::QWheelEvent::ShiftModifierQt::ShiftModifier
Qt3DInput::QWheelEvent::ControlModifierQt::ControlModifier
Qt3DInput::QWheelEvent::AltModifierQt::AltModifier
Qt3DInput::QWheelEvent::MetaModifierQt::MetaModifier
Qt3DInput::QWheelEvent::KeypadModifierQt::KeypadModifier

プロパティのドキュメント

accepted : bool

マウスホイールイベントが受け入れられたかどうかを指定します

アクセス関数:

bool isAccepted() const
void setAccepted(bool accepted)

[read-only] angleDelta : const QPoint

マウスホイールイベントのホイール角度の変更量を指定します

アクセス関数:

QPoint angleDelta() const

[read-only] buttons : const int

マウスホイールイベントにボタンが存在する場合、そのボタンを指定します

アクセス関数:

int buttons() const

[read-only] modifiers : const Qt3DInput::QWheelEvent::Modifiers

マウスホイールイベントに修飾子が適用されたかどうかを指定します

アクセス関数:

Qt3DInput::QWheelEvent::Modifiers modifiers() const

[read-only] x : const int

マウスホイールイベントのX座標を指定します

アクセス関数:

int x() const

[read-only] y : const int

マウスホイールイベントのY座標を指定します

アクセス関数:

int y() const

メンバ関数のドキュメント

[explicit] QWheelEvent::QWheelEvent(const QWheelEvent &e)

e から新しい QWheelEvent インスタンスを作成します。

QPoint QWheelEvent::angleDelta() const

ホイールが回転した距離を、1度の8分の1単位で返します。正の値はホイールが前方(ユーザーから離れる方向)に回転したことを示し、負の値はホイールが後方(ユーザーに向かう方向)に回転したことを示します。

注: プロパティ angleDeltaのゲッター関数です 。

int QWheelEvent::buttons() const

ホイールイベントに付随する可能性のあるマウスボタンの状態を確認するために使用されるビットフィールドを返します。

注: プロパティ buttonsのゲッター 関数です。

bool QWheelEvent::isAccepted() const

イベントが受け入れられたかどうかを返します。

注: プロパティ `accepted`のゲッター 関数です。

Qt3DInput::QWheelEvent::Modifiers QWheelEvent::modifiers() const

ホイールイベントに付随している可能性のあるキーボード修飾子を返します。

注: プロパティ modifiersのゲッター関数です 。

void QWheelEvent::setAccepted(bool accepted)

accepted がtrueの場合、イベントを「受理済み」として設定します。

注: イベントが受け入れられると 、他のリスナーへの伝播は阻止されます。

注: プロパティ `accepted`のセッター 関数です。

isAccepted()も参照してください 。

QEvent::Type QWheelEvent::type() const

イベントのQEvent::Type を返します。

int QWheelEvent::x() const

マウスイベントのx座標を返します。

注: プロパティ x のゲッター 関数です。

int QWheelEvent::y() const

マウスイベントのx座標を返します。

注: プロパティ yのゲッター 関数です。

関連する非メンバ

QWheelEventPtr

QWheelEvent 用の共有ポインタ。

© 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.