MouseHandler QML Type

Provides mouse event notification. 更多...

import 语句: import Qt3D.Input 2.15
Since: Qt 5.5
实例化: QMouseHandler

特性

信号

详细描述

另请参阅 MouseDevice and MouseEvent .

特性文档编制

[read-only] containsMouse : bool

保持 true if the QMouseHandler currently contains the mouse.

sourceDevice : MouseDevice

Holds the current mouse source device of the MouseHandler 实例。

信号文档编制

clicked ( MouseEvent mouse )

This signal is emitted when a mouse button is clicked with the event details being contained within mouse

注意: 相应处理程序是 onClicked .

doubleClicked ( MouseEvent mouse )

This signal is emitted when a mouse button is double clicked with the event details being contained within mouse

注意: 相应处理程序是 onDoubleClicked .

entered ()

注意: 相应处理程序是 onEntered .

exited ()

注意: 相应处理程序是 onExited .

positionChanged ( MouseEvent mouse )

This signal is emitted when the mouse position changes with the event details being contained within mouse

注意: 相应处理程序是 onPositionChanged .

pressAndHold ( MouseEvent mouse )

This signal is emitted when a mouse button is pressed and held down with the event details being contained within mouse

注意: 相应处理程序是 onPressAndHold .

pressed ( MouseEvent mouse )

This signal is emitted when a mouse button is pressed with the event details being contained within mouse

注意: 相应处理程序是 onPressed .

released ( MouseEvent mouse )

This signal is emitted when a mouse button is released with the event details being contained within mouse

注意: 相应处理程序是 onReleased .

wheel ( MouseEvent mouse )

This signal is emitted when the mouse wheel is used with the event details being contained within mouse .

注意: 相应处理程序是 onWheel .