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

QMouseEvent::QMouseEvent ( Type  type,
const QPoint pos,
const QPoint globalPos,
Qt::MouseButton  button,
Qt::MouseButtons  buttons,
Qt::KeyboardModifiers  modifiers 
)

Constructs a mouse event object.

The type parameter must be QEvent::MouseButtonPress, QEvent::MouseButtonRelease, QEvent::MouseButtonDblClick, or QEvent::MouseMove.

The pos is the mouse cursor's position relative to the receiving widget. The cursor's position in global coordinates is specified by globalPos. The button that caused the event is given as a value from the Qt::MouseButton enum. If the event type is MouseMove, the appropriate button for this event is Qt::NoButton. buttons is the state of all buttons at the time of the event, modifiers the state of all keyboard modifiers.

Definition at line 189 of file qevent.cpp.

    : QInputEvent(type, modifiers), p(pos), g(globalPos), b(button), mouseState(buttons)
{}


Generated by  Doxygen 1.6.0   Back to index