Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

Qt::MouseButtons QApplication::mouseButtons (  )  [static]

Returns the current state of the buttons on the mouse. The current state is updated syncronously as the event queue is emptied of events that will spontaneously change the mouse state (QEvent::MousePress and QEvent::MouseRelease events).

It should be noted this may not reflect the actual buttons held on theinput device at the time of calling but rather the mouse buttons as last reported in one of the above events. If no mouse buttons are being held Qt::NoButton is returned.

See also:

Definition at line 2321 of file qapplication.cpp.

    return QApplicationPrivate::mouse_buttons;

Generated by  Doxygen 1.6.0   Back to index