<class name="QMouseEvent" doc="/**
&lt;p&gt;The &lt;a href=&quot;QMouseEvent.html#QMouseEvent(com.trolltech.qt.core.QEvent.Type, com.trolltech.qt.core.QPoint, com.trolltech.qt.core.QPoint, com.trolltech.qt.core.Qt.MouseButton, com.trolltech.qt.core.Qt.MouseButtons, com.trolltech.qt.core.Qt.KeyboardModifiers)&quot;&gt;&lt;tt&gt;QMouseEvent&lt;/tt&gt;&lt;/a&gt; class contains parameters that describe a mouse event.&lt;/p&gt;
&lt;p&gt;Mouse events occur when a mouse button is pressed or released inside a widget, or when the mouse cursor is moved.&lt;/p&gt;
&lt;p&gt;Mouse move events will occur only when a mouse button is pressed down, unless mouse tracking has been enabled with QWidget::setMouseTracking().&lt;/p&gt;
&lt;p&gt;Qt automatically grabs the mouse when a mouse button is pressed inside a widget; the widget will continue to receive mouse events until the last mouse button is released.&lt;/p&gt;
&lt;p&gt;A mouse event contains a special accept flag that indicates whether the receiver wants the event. You should call &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QEvent.html#ignore()&quot;&gt;&lt;tt&gt;ignore&lt;/tt&gt;&lt;/a&gt; if the mouse event is not handled by your widget. A mouse event is propagated up the parent widget chain until a widget accepts it with &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QEvent.html#accept()&quot;&gt;&lt;tt&gt;accept&lt;/tt&gt;&lt;/a&gt;, or an event filter consumes it.&lt;/p&gt;
&lt;p&gt;The state of the keyboard modifier keys can be found by calling the modifiers() function, inhertied from &lt;a href=&quot;QInputEvent.html#QInputEvent(com.trolltech.qt.core.QEvent.Type, com.trolltech.qt.core.Qt.KeyboardModifiers)&quot;&gt;&lt;tt&gt;QInputEvent&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The functions &lt;a href=&quot;QMouseEvent.html#pos()&quot;&gt;&lt;tt&gt;pos&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QMouseEvent.html#x()&quot;&gt;&lt;tt&gt;x&lt;/tt&gt;&lt;/a&gt;, and &lt;a href=&quot;QMouseEvent.html#y()&quot;&gt;&lt;tt&gt;y&lt;/tt&gt;&lt;/a&gt; give the cursor position relative to the widget that receives the mouse event. If you move the widget as a result of the mouse event, use the global position returned by &lt;a href=&quot;QMouseEvent.html#globalPos()&quot;&gt;&lt;tt&gt;globalPos&lt;/tt&gt;&lt;/a&gt; to avoid a shaking motion.&lt;/p&gt;
&lt;p&gt;The QWidget::setEnabled() function can be used to enable or disable mouse and keyboard events for a widget.&lt;/p&gt;
&lt;p&gt;Reimplement the &lt;a href=&quot;QWidget.html&quot;&gt;&lt;tt&gt;QWidget&lt;/tt&gt;&lt;/a&gt; event handlers, QWidget::mousePressEvent(), QWidget::mouseReleaseEvent(), QWidget::mouseDoubleClickEvent(), and QWidget::mouseMoveEvent() to receive mouse events in your own widgets.&lt;/p&gt;
&lt;p&gt;QCursor::pos()&lt;/p&gt;

@see &lt;tt&gt;QWidget::setMouseTracking&lt;/tt&gt;
@see &lt;tt&gt;QWidget::grabMouse&lt;/tt&gt; */">
    <method name="public QMouseEvent(com.trolltech.qt.core.QEvent.Type type, com.trolltech.qt.core.QPoint pos, com.trolltech.qt.core.Qt.MouseButton button, com.trolltech.qt.core.Qt.MouseButtons buttons, com.trolltech.qt.core.Qt.KeyboardModifiers modifiers)" doc="/**
&lt;p&gt;Constructs a mouse event object.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;type&lt;/tt&gt; parameter must be one of QEvent::MouseButtonPress, QEvent::MouseButtonRelease, QEvent::MouseButtonDblClick, or QEvent::MouseMove.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;pos&lt;/tt&gt; is the mouse cursor's position relative to the receiving widget. The &lt;tt&gt;button&lt;/tt&gt; that caused the event is given as a value from the Qt::MouseButton enum. If the event &lt;tt&gt;type&lt;/tt&gt; is &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QEvent.html#Type-enum&quot;&gt;&lt;tt&gt;MouseMove&lt;/tt&gt;&lt;/a&gt;, the appropriate button for this event is Qt::NoButton. The mouse and keyboard states at the time of the event are specified by &lt;tt&gt;buttons&lt;/tt&gt; and &lt;tt&gt;modifiers&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QMouseEvent.html#globalPos()&quot;&gt;&lt;tt&gt;globalPos&lt;/tt&gt;&lt;/a&gt; is initialized to QCursor::pos(), which may not be appropriate. Use the other constructor to specify the global position explicitly.&lt;/p&gt;
 */"/>
    <method name="public QMouseEvent(com.trolltech.qt.core.QEvent.Type type, com.trolltech.qt.core.QPoint pos, com.trolltech.qt.core.QPoint globalPos, com.trolltech.qt.core.Qt.MouseButton button, com.trolltech.qt.core.Qt.MouseButtons buttons, com.trolltech.qt.core.Qt.KeyboardModifiers modifiers)" doc="/**
&lt;p&gt;Constructs a mouse event object.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;type&lt;/tt&gt; parameter must be QEvent::MouseButtonPress, QEvent::MouseButtonRelease, QEvent::MouseButtonDblClick, or QEvent::MouseMove.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;pos&lt;/tt&gt; is the mouse cursor's position relative to the receiving widget. The cursor's position in global coordinates is specified by &lt;tt&gt;globalPos&lt;/tt&gt;. The &lt;tt&gt;button&lt;/tt&gt; that caused the event is given as a value from the &lt;tt&gt;Qt::MouseButton&lt;/tt&gt; enum. If the event &lt;tt&gt;type&lt;/tt&gt; is &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QEvent.html#Type-enum&quot;&gt;&lt;tt&gt;MouseMove&lt;/tt&gt;&lt;/a&gt;, the appropriate button for this event is Qt::NoButton. &lt;tt&gt;buttons&lt;/tt&gt; is the state of all buttons at the time of the event, &lt;tt&gt;modifiers&lt;/tt&gt; the state of all keyboard modifiers.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.core.Qt.MouseButton button()" doc="/**
&lt;p&gt;Returns the button that caused the event.&lt;/p&gt;
&lt;p&gt;Note that the returned value is always Qt::NoButton for mouse move events.&lt;/p&gt;

@see &lt;a href=&quot;QMouseEvent.html#buttons()&quot;&gt;&lt;tt&gt;buttons&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;Qt::MouseButton&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.core.Qt.MouseButtons buttons()" doc="/**
&lt;p&gt;Returns the button state when the event was generated. The button state is a combination of Qt::LeftButton, Qt::RightButton, Qt::MidButton using the OR operator. For mouse move events, this is all buttons that are pressed down. For mouse press and double click events this includes the button that caused the event. For mouse release events this excludes the button that caused the event.&lt;/p&gt;

@see &lt;a href=&quot;QMouseEvent.html#button()&quot;&gt;&lt;tt&gt;button&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;Qt::MouseButton&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.core.QPoint globalPos()" doc="/**
&lt;p&gt;Returns the global position of the mouse cursor &lt;i&gt;at the time of the event&lt;/i&gt;. This is important on asynchronous window systems like X11. Whenever you move your widgets around in response to mouse events, &lt;a href=&quot;QMouseEvent.html#globalPos()&quot;&gt;&lt;tt&gt;globalPos&lt;/tt&gt;&lt;/a&gt; may differ a lot from the current pointer position QCursor::pos(), and from QWidget::mapToGlobal(&lt;a href=&quot;QMouseEvent.html#pos()&quot;&gt;&lt;tt&gt;pos&lt;/tt&gt;&lt;/a&gt;).&lt;/p&gt;

@see &lt;a href=&quot;QMouseEvent.html#globalX()&quot;&gt;&lt;tt&gt;globalX&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMouseEvent.html#globalY()&quot;&gt;&lt;tt&gt;globalY&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int globalX()" doc="/**
&lt;p&gt;Returns the global x position of the mouse cursor at the time of the event.&lt;/p&gt;

@see &lt;a href=&quot;QMouseEvent.html#globalY()&quot;&gt;&lt;tt&gt;globalY&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMouseEvent.html#globalPos()&quot;&gt;&lt;tt&gt;globalPos&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int globalY()" doc="/**
&lt;p&gt;Returns the global y position of the mouse cursor at the time of the event.&lt;/p&gt;

@see &lt;a href=&quot;QMouseEvent.html#globalX()&quot;&gt;&lt;tt&gt;globalX&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMouseEvent.html#globalPos()&quot;&gt;&lt;tt&gt;globalPos&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QPoint pos()" doc="/**
&lt;p&gt;Returns the position of the mouse cursor, relative to the widget that received the event.&lt;/p&gt;
&lt;p&gt;If you move the widget as a result of the mouse event, use the global position returned by &lt;a href=&quot;QMouseEvent.html#globalPos()&quot;&gt;&lt;tt&gt;globalPos&lt;/tt&gt;&lt;/a&gt; to avoid a shaking motion.&lt;/p&gt;

@see &lt;a href=&quot;QMouseEvent.html#x()&quot;&gt;&lt;tt&gt;x&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMouseEvent.html#y()&quot;&gt;&lt;tt&gt;y&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMouseEvent.html#globalPos()&quot;&gt;&lt;tt&gt;globalPos&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int x()" doc="/**
&lt;p&gt;Returns the x position of the mouse cursor, relative to the widget that received the event.&lt;/p&gt;

@see &lt;a href=&quot;QMouseEvent.html#y()&quot;&gt;&lt;tt&gt;y&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMouseEvent.html#pos()&quot;&gt;&lt;tt&gt;pos&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int y()" doc="/**
&lt;p&gt;Returns the y position of the mouse cursor, relative to the widget that received the event.&lt;/p&gt;

@see &lt;a href=&quot;QMouseEvent.html#x()&quot;&gt;&lt;tt&gt;x&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMouseEvent.html#pos()&quot;&gt;&lt;tt&gt;pos&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected final com.trolltech.qt.core.QPoint g()"/>
    <method name="protected final void setG(com.trolltech.qt.core.QPoint g)"/>
    <method name="protected final com.trolltech.qt.core.Qt.MouseButtons mouseState()"/>
    <method name="protected final void setMouseState(com.trolltech.qt.core.Qt.MouseButtons mouseState)"/>
    <method name="protected final com.trolltech.qt.core.QPoint p()"/>
    <method name="protected final void setP(com.trolltech.qt.core.QPoint p)"/>
    <method name="protected final com.trolltech.qt.core.Qt.MouseButton b()"/>
    <method name="protected final void setB(com.trolltech.qt.core.Qt.MouseButton b)"/>
</class>
