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

詳細説明

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

QKeyEventQMouseEventQMouseHandlerも参照のこと

メンバー型ドキュメント

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)

QWheelEvente から新しい QWheelEvent インスタンスを構築します。

QPoint QWheelEvent::angleDelta() const

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

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

int QWheelEvent::buttons() const

ホイールイベントに付随するマウスボタンのチェックに使用するビットフィールドを返す。

注: プロパティ・ボタン用のゲッター関数。

bool QWheelEvent::isAccepted() const

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

注: プロパティのゲッター関数accepted

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

ホイールイベントに付随するキーボード修飾子を返す。

注: プロパティ修飾子用のゲッター関数。

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 の共有ポインター。

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