PySide6.Qt3DInput.Qt3DInput.QMouseHandler¶
- class QMouseHandler¶
- Provides a means of being notified about mouse events when attached to a - QMouseDeviceinstance. More…- Synopsis¶- Properties¶- Methods¶- def - __init__()
- def - containsMouse()
- def - sourceDevice()
 - Slots¶- Signals¶- def - clicked()
- def - doubleClicked()
- def - entered()
- def - exited()
- def - pressAndHold()
- def - pressed()
- def - released()
- def - wheel()
 - Note - This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE - Detailed Description¶- Note - QMouseHandlercomponents shouldn’t be shared, not respecting that condition will most likely result in undefined behaviors.- See also - QMouseDevice- QMouseEvent- Note - Properties can be used directly when - from __feature__ import true_propertyis used or via accessor functions otherwise.- property containsMouseᅟ: bool¶
 - Holds - trueif the- QMouseHandlercurrently contains the mouse.- Note - In this context, contains mean that the ray originating from the mouse is intersecting with the - QEntitythat aggregates the current- QMouseHandlerinstance component.- Access functions:
 - property sourceDeviceᅟ: QMouseDevice¶
 - Holds the current mouse source device of the - QMouseHandlerinstance.- Access functions:
 - __init__([parent=None])¶
- Parameters:
- parent – - QNode
 
 - Constructs a new - QMouseHandlerinstance with parent- parent.- clicked(mouse)¶
- Parameters:
- mouse – - QMouseEvent
 
 - This signal is emitted when a mouse button is clicked with the event details being contained within - mouse.- containsMouse()¶
- Return type:
- bool 
 
 - Getter of property - containsMouseᅟ.- containsMouseChanged(containsMouse)¶
- Parameters:
- containsMouse – bool 
 
 - Notification signal of property - containsMouseᅟ.- doubleClicked(mouse)¶
- Parameters:
- mouse – - QMouseEvent
 
 - This signal is emitted when a mouse button is double clicked with the event details being contained within - mouse.- entered()¶
 - exited()¶
 - positionChanged(mouse)¶
- Parameters:
- mouse – - QMouseEvent
 
 - This signal is emitted when the mouse position changes with the event details being contained within - mouse- pressAndHold(mouse)¶
- Parameters:
- mouse – - QMouseEvent
 
 - This signal is emitted when a mouse button is pressed and held down with the event details being contained within - mouse- pressed(mouse)¶
- Parameters:
- mouse – - QMouseEvent
 
 - This signal is emitted when a mouse button is pressed with the event details being contained within - mouse- released(mouse)¶
- Parameters:
- mouse – - QMouseEvent
 
 - This signal is emitted when a mouse button is released with the event details being contained within - mouse- setContainsMouse(contains)¶
- Parameters:
- contains – bool 
 
 - setSourceDevice(mouseDevice)¶
- Parameters:
- mouseDevice – - QMouseDevice
 
 - Sets the mouse device of the - QMouseHandlerinstance to- mouseDevice.- See also - sourceDevice()- Setter of property - sourceDeviceᅟ.- sourceDevice()¶
- Return type:
- QMouseDevice
 - See also - setSourceDevice()
 - Getter of property - sourceDeviceᅟ.- sourceDeviceChanged(mouseDevice)¶
- Parameters:
- mouseDevice – - QMouseDevice
 
 - Notification signal of property - sourceDeviceᅟ.- wheel(wheel)¶
- Parameters:
- wheel – - QWheelEvent
 
 - This signal is emitted when the mouse wheel is used with the event details being contained within - wheel