In questa pagina

MouseEvent QML Type

Fornisce i parametri che descrivono un evento del mouse. Altro...

Import Statement: import Qt3D.Input 2.12
In C++: QMouseEvent
Status: Deprecated

Questo tipo è deprecato. Se ne sconsiglia vivamente l'uso nel codice nuovo.

Proprietà

Descrizione dettagliata

Gli eventi del mouse si verificano quando viene premuto un pulsante del mouse e il raggio che attraversa la vista, con origine nella posizione del mouse, interseca uno o più elementi della scena.

Vedi anche KeyEvent, WheelEvent e MouseHandler.

Documentazione delle proprietà

accepted : bool

Indica se l'evento del mouse è stato accettato

button : Buttons [read-only]

Indica il pulsante che attiva l'evento del mouse

buttons : int [read-only]

Indica il pulsante che attiva l'evento del mouse

modifiers : Modifiers [read-only]

Specifica se sono stati applicati dei modificatori all'evento del mouse

wasHeld : bool [read-only]

Indica se un pulsante del mouse è stato tenuto premuto durante l'evento del mouse

x : int [read-only]

Specifica la coordinata X dell'evento del mouse

y : int [read-only]

Specifica la coordinata Y dell'evento del mouse

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