Qt 4.8
Public Functions | List of all members
QGraphicsSceneMouseEvent Class Reference

The QGraphicsSceneMouseEvent class provides mouse events in the graphics view framework. More...

#include <qgraphicssceneevent.h>

Inheritance diagram for QGraphicsSceneMouseEvent:
QGraphicsSceneEvent QEvent

Public Functions

Qt::MouseButton button () const
 Returns the mouse button (if any) that caused the event. More...
 
QPointF buttonDownPos (Qt::MouseButton button) const
 Returns the mouse cursor position in item coordinates where the specified button was clicked. More...
 
QPointF buttonDownScenePos (Qt::MouseButton button) const
 Returns the mouse cursor position in scene coordinates where the specified button was clicked. More...
 
QPoint buttonDownScreenPos (Qt::MouseButton button) const
 Returns the mouse cursor position in screen coordinates where the specified button was clicked. More...
 
Qt::MouseButtons buttons () const
 Returns the combination of mouse buttons that were pressed at the time the event was sent. More...
 
QPointF lastPos () const
 Returns the last recorded mouse cursor position in item coordinates. More...
 
QPointF lastScenePos () const
 Returns the last recorded mouse cursor position in scene coordinates. More...
 
QPoint lastScreenPos () const
 Returns the last recorded mouse cursor position in screen coordinates. More...
 
Qt::KeyboardModifiers modifiers () const
 Returns the keyboard modifiers in use at the time the event was sent. More...
 
QPointF pos () const
 Returns the mouse cursor position in item coordinates. More...
 
 QGraphicsSceneMouseEvent (Type type=None)
 Constructs a generic graphics scene mouse event of the specified type. More...
 
QPointF scenePos () const
 Returns the mouse cursor position in scene coordinates. More...
 
QPoint screenPos () const
 Returns the mouse cursor position in screen coordinates. More...
 
void setButton (Qt::MouseButton button)
 
void setButtonDownPos (Qt::MouseButton button, const QPointF &pos)
 
void setButtonDownScenePos (Qt::MouseButton button, const QPointF &pos)
 
void setButtonDownScreenPos (Qt::MouseButton button, const QPoint &pos)
 
void setButtons (Qt::MouseButtons buttons)
 
void setLastPos (const QPointF &pos)
 
void setLastScenePos (const QPointF &pos)
 
void setLastScreenPos (const QPoint &pos)
 
void setModifiers (Qt::KeyboardModifiers modifiers)
 
void setPos (const QPointF &pos)
 
void setScenePos (const QPointF &pos)
 
void setScreenPos (const QPoint &pos)
 
 ~QGraphicsSceneMouseEvent ()
 Destroys the event. More...
 
- Public Functions inherited from QGraphicsSceneEvent
 QGraphicsSceneEvent (Type type)
 Constructs a generic graphics scene event of the specified type. More...
 
void setWidget (QWidget *widget)
 Sets the widget related to this event. More...
 
QWidgetwidget () const
 Returns the widget where the event originated, or 0 if the event originates from another application. More...
 
 ~QGraphicsSceneEvent ()
 Destroys the event. More...
 
- Public Functions inherited from QEvent
void accept ()
 Sets the accept flag of the event object, the equivalent of calling setAccepted(true). More...
 
void ignore ()
 Clears the accept flag parameter of the event object, the equivalent of calling setAccepted(false). More...
 
bool isAccepted () const
 
 QEvent (Type type)
 Contructs an event object of type type. More...
 
void setAccepted (bool accepted)
 
bool spontaneous () const
 Returns true if the event originated outside the application (a system event); otherwise returns false. More...
 
Type type () const
 Returns the event type. More...
 
virtual ~QEvent ()
 Destroys the event. More...
 

Additional Inherited Members

- Public Types inherited from QEvent
enum  Type {
  None = 0, Timer = 1, MouseButtonPress = 2, MouseButtonRelease = 3,
  MouseButtonDblClick = 4, MouseMove = 5, KeyPress = 6, KeyRelease = 7,
  FocusIn = 8, FocusOut = 9, Enter = 10, Leave = 11,
  Paint = 12, Move = 13, Resize = 14, Create = 15,
  Destroy = 16, Show = 17, Hide = 18, Close = 19,
  Quit = 20, ParentChange = 21, ParentAboutToChange = 131, ThreadChange = 22,
  WindowActivate = 24, WindowDeactivate = 25, ShowToParent = 26, HideToParent = 27,
  Wheel = 31, WindowTitleChange = 33, WindowIconChange = 34, ApplicationWindowIconChange = 35,
  ApplicationFontChange = 36, ApplicationLayoutDirectionChange = 37, ApplicationPaletteChange = 38, PaletteChange = 39,
  Clipboard = 40, Speech = 42, MetaCall = 43, SockAct = 50,
  WinEventAct = 132, DeferredDelete = 52, DragEnter = 60, DragMove = 61,
  DragLeave = 62, Drop = 63, DragResponse = 64, ChildAdded = 68,
  ChildPolished = 69, ChildRemoved = 71, ShowWindowRequest = 73, PolishRequest = 74,
  Polish = 75, LayoutRequest = 76, UpdateRequest = 77, UpdateLater = 78,
  EmbeddingControl = 79, ActivateControl = 80, DeactivateControl = 81, ContextMenu = 82,
  InputMethod = 83, AccessibilityPrepare = 86, TabletMove = 87, LocaleChange = 88,
  LanguageChange = 89, LayoutDirectionChange = 90, Style = 91, TabletPress = 92,
  TabletRelease = 93, OkRequest = 94, HelpRequest = 95, IconDrag = 96,
  FontChange = 97, EnabledChange = 98, ActivationChange = 99, StyleChange = 100,
  IconTextChange = 101, ModifiedChange = 102, MouseTrackingChange = 109, WindowBlocked = 103,
  WindowUnblocked = 104, WindowStateChange = 105, ToolTip = 110, WhatsThis = 111,
  StatusTip = 112, ActionChanged = 113, ActionAdded = 114, ActionRemoved = 115,
  FileOpen = 116, Shortcut = 117, ShortcutOverride = 51, WhatsThisClicked = 118,
  ToolBarChange = 120, ApplicationActivate = 121, ApplicationActivated = ApplicationActivate, ApplicationDeactivate = 122,
  ApplicationDeactivated = ApplicationDeactivate, QueryWhatsThis = 123, EnterWhatsThisMode = 124, LeaveWhatsThisMode = 125,
  ZOrderChange = 126, HoverEnter = 127, HoverLeave = 128, HoverMove = 129,
  AccessibilityHelp = 119, AccessibilityDescription = 130, AcceptDropsChange = 152, MenubarUpdated = 153,
  ZeroTimerEvent = 154, GraphicsSceneMouseMove = 155, GraphicsSceneMousePress = 156, GraphicsSceneMouseRelease = 157,
  GraphicsSceneMouseDoubleClick = 158, GraphicsSceneContextMenu = 159, GraphicsSceneHoverEnter = 160, GraphicsSceneHoverMove = 161,
  GraphicsSceneHoverLeave = 162, GraphicsSceneHelp = 163, GraphicsSceneDragEnter = 164, GraphicsSceneDragMove = 165,
  GraphicsSceneDragLeave = 166, GraphicsSceneDrop = 167, GraphicsSceneWheel = 168, KeyboardLayoutChange = 169,
  DynamicPropertyChange = 170, TabletEnterProximity = 171, TabletLeaveProximity = 172, NonClientAreaMouseMove = 173,
  NonClientAreaMouseButtonPress = 174, NonClientAreaMouseButtonRelease = 175, NonClientAreaMouseButtonDblClick = 176, MacSizeChange = 177,
  ContentsRectChange = 178, MacGLWindowChange = 179, FutureCallOut = 180, GraphicsSceneResize = 181,
  GraphicsSceneMove = 182, CursorChange = 183, ToolTipChange = 184, NetworkReplyUpdated = 185,
  GrabMouse = 186, UngrabMouse = 187, GrabKeyboard = 188, UngrabKeyboard = 189,
  MacGLClearDrawable = 191, StateMachineSignal = 192, StateMachineWrapped = 193, TouchBegin = 194,
  TouchUpdate = 195, TouchEnd = 196, NativeGesture = 197, RequestSoftwareInputPanel = 199,
  CloseSoftwareInputPanel = 200, UpdateSoftKeys = 201, WinIdChange = 203, Gesture = 198,
  GestureOverride = 202, PlatformPanel = 212, User = 1000, MaxUser = 65535
}
 This enum type defines the valid event types in Qt. More...
 
- Static Public Functions inherited from QEvent
static int registerEventType (int hint=-1)
 Registers and returns a custom event type. More...
 
- Protected Functions inherited from QGraphicsSceneEvent
 QGraphicsSceneEvent (QGraphicsSceneEventPrivate &dd, Type type=None)
 Constructs a generic graphics scene event. More...
 
- Protected Variables inherited from QGraphicsSceneEvent
QScopedPointer< QGraphicsSceneEventPrivated_ptr
 
- Protected Variables inherited from QEvent
QEventPrivate * d
 
ushort t
 

Detailed Description

The QGraphicsSceneMouseEvent class provides mouse events in the graphics view framework.

Since
4.2

When a QGraphicsView receives a QMouseEvent, it translates it to a QGraphicsSceneMouseEvent. The event is then forwarded to the QGraphicsScene associated with the view. If the event is not handled by the scene, the view may use it, e.g., for the QGraphicsView::DragMode.

In addition to containing the item, scene, and screen coordinates of the event (as pos(), scenePos(), and screenPos()), mouse events also contain the coordinates of the previous mouse event received by the view. These can be retrieved with lastPos(), lastScreenPos(), and lastScenePos().

See also
QGraphicsSceneContextMenuEvent, QGraphicsSceneHoverEvent, QGraphicsSceneWheelEvent, QMouseEvent

Definition at line 85 of file qgraphicssceneevent.h.

Constructors and Destructors

◆ QGraphicsSceneMouseEvent()

QGraphicsSceneMouseEvent::QGraphicsSceneMouseEvent ( Type  type = None)

Constructs a generic graphics scene mouse event of the specified type.

Warning
This function is not part of the public interface.

Definition at line 406 of file qgraphicssceneevent.cpp.

408 {
409 }
QGraphicsSceneEvent(Type type)
Constructs a generic graphics scene event of the specified type.
Type type() const
Returns the event type.
Definition: qcoreevent.h:303

◆ ~QGraphicsSceneMouseEvent()

QGraphicsSceneMouseEvent::~QGraphicsSceneMouseEvent ( )

Destroys the event.

Definition at line 414 of file qgraphicssceneevent.cpp.

415 {
416 }

Functions

◆ button()

Qt::MouseButton QGraphicsSceneMouseEvent::button ( ) const

◆ buttonDownPos()

QPointF QGraphicsSceneMouseEvent::buttonDownPos ( Qt::MouseButton  button) const

Returns the mouse cursor position in item coordinates where the specified button was clicked.

See also
buttonDownScenePos(), buttonDownScreenPos(), pos()

Definition at line 484 of file qgraphicssceneevent.cpp.

Referenced by QDeclarativeFlickablePrivate::captureDelayedPress(), cloneEvent(), QGraphicsItemPrivate::remapItemPos(), QDeclarativePathView::sendMouseEvent(), QDeclarativeMouseArea::sendMouseEvent(), QDeclarativeFlickable::sendMouseEvent(), and QDeclarativePinchArea::sendMouseEvent().

485 {
487  return d->buttonDownPos.value(button);
488 }
The QGraphicsSceneMouseEvent class provides mouse events in the graphics view framework.
Qt::MouseButton button() const
Returns the mouse button (if any) that caused the event.
#define Q_D(Class)
Definition: qglobal.h:2482
QEventPrivate * d
Definition: qcoreevent.h:315

◆ buttonDownScenePos()

QPointF QGraphicsSceneMouseEvent::buttonDownScenePos ( Qt::MouseButton  button) const

Returns the mouse cursor position in scene coordinates where the specified button was clicked.

See also
buttonDownPos(), buttonDownScreenPos(), scenePos()

Definition at line 505 of file qgraphicssceneevent.cpp.

Referenced by QDeclarativeFlickablePrivate::captureDelayedPress(), QGraphicsItem::mouseMoveEvent(), and QGraphicsWidgetPrivate::windowFrameMouseMoveEvent().

506 {
508  return d->buttonDownScenePos.value(button);
509 }
The QGraphicsSceneMouseEvent class provides mouse events in the graphics view framework.
Qt::MouseButton button() const
Returns the mouse button (if any) that caused the event.
#define Q_D(Class)
Definition: qglobal.h:2482
QEventPrivate * d
Definition: qcoreevent.h:315

◆ buttonDownScreenPos()

QPoint QGraphicsSceneMouseEvent::buttonDownScreenPos ( Qt::MouseButton  button) const

Returns the mouse cursor position in screen coordinates where the specified button was clicked.

See also
screenPos(), buttonDownPos(), buttonDownScenePos()

Definition at line 526 of file qgraphicssceneevent.cpp.

Referenced by QDeclarativeFlickablePrivate::captureDelayedPress(), cloneEvent(), and QGraphicsItem::mouseMoveEvent().

527 {
529  return d->buttonDownScreenPos.value(button);
530 }
The QGraphicsSceneMouseEvent class provides mouse events in the graphics view framework.
Qt::MouseButton button() const
Returns the mouse button (if any) that caused the event.
#define Q_D(Class)
Definition: qglobal.h:2482
QEventPrivate * d
Definition: qcoreevent.h:315

◆ buttons()

Qt::MouseButtons QGraphicsSceneMouseEvent::buttons ( ) const

◆ lastPos()

QPointF QGraphicsSceneMouseEvent::lastPos ( ) const

Returns the last recorded mouse cursor position in item coordinates.

See also
lastScenePos(), lastScreenPos(), pos()

Definition at line 547 of file qgraphicssceneevent.cpp.

Referenced by _q_hoverFromMouseEvent(), QDeclarativeFlickablePrivate::captureDelayedPress(), and cloneEvent().

548 {
550  return d->lastPos;
551 }
The QGraphicsSceneMouseEvent class provides mouse events in the graphics view framework.
#define Q_D(Class)
Definition: qglobal.h:2482
QEventPrivate * d
Definition: qcoreevent.h:315

◆ lastScenePos()

QPointF QGraphicsSceneMouseEvent::lastScenePos ( ) const

Returns the last recorded mouse cursor position in scene coordinates.

The last recorded position is the position of the previous mouse event received by the view that created the event.

See also
lastPos(), lastScreenPos(), scenePos()

Definition at line 570 of file qgraphicssceneevent.cpp.

Referenced by _q_hoverFromMouseEvent(), QDeclarativeFlickablePrivate::captureDelayedPress(), cloneEvent(), QDeclarativePathView::sendMouseEvent(), QDeclarativeMouseArea::sendMouseEvent(), QDeclarativeFlickable::sendMouseEvent(), QGraphicsScenePrivate::sendMouseEvent(), and QDeclarativePinchArea::sendMouseEvent().

571 {
573  return d->lastScenePos;
574 }
The QGraphicsSceneMouseEvent class provides mouse events in the graphics view framework.
#define Q_D(Class)
Definition: qglobal.h:2482
QEventPrivate * d
Definition: qcoreevent.h:315

◆ lastScreenPos()

QPoint QGraphicsSceneMouseEvent::lastScreenPos ( ) const

Returns the last recorded mouse cursor position in screen coordinates.

The last recorded position is the position of the previous mouse event received by the view that created the event.

See also
lastPos(), lastScenePos(), screenPos()

Definition at line 593 of file qgraphicssceneevent.cpp.

Referenced by _q_hoverFromMouseEvent(), QDeclarativeFlickablePrivate::captureDelayedPress(), and cloneEvent().

594 {
596  return d->lastScreenPos;
597 }
The QGraphicsSceneMouseEvent class provides mouse events in the graphics view framework.
#define Q_D(Class)
Definition: qglobal.h:2482
QEventPrivate * d
Definition: qcoreevent.h:315

◆ modifiers()

Qt::KeyboardModifiers QGraphicsSceneMouseEvent::modifiers ( ) const

Returns the keyboard modifiers in use at the time the event was sent.

See also
buttons(), button()

Definition at line 655 of file qgraphicssceneevent.cpp.

Referenced by _q_hoverFromMouseEvent(), QDeclarativeFlickablePrivate::captureDelayedPress(), cloneEvent(), QTextControl::processEvent(), QLineControl::processEvent(), and setModifiers().

656 {
658  return d->modifiers;
659 }
The QGraphicsSceneMouseEvent class provides mouse events in the graphics view framework.
#define Q_D(Class)
Definition: qglobal.h:2482
QEventPrivate * d
Definition: qcoreevent.h:315

◆ pos()

QPointF QGraphicsSceneMouseEvent::pos ( ) const

Returns the mouse cursor position in item coordinates.

See also
scenePos(), screenPos(), lastPos()

Definition at line 423 of file qgraphicssceneevent.cpp.

Referenced by _q_hoverFromMouseEvent(), QGraphicsTextItemPrivate::_q_mouseOnEdge(), QDeclarativeFlickablePrivate::captureDelayedPress(), cloneEvent(), QDeclarativePathViewPrivate::handleMouseMoveEvent(), QDeclarativeFlickablePrivate::handleMouseMoveEvent(), QDeclarativePathViewPrivate::handleMousePressEvent(), QDeclarativeFlickablePrivate::handleMouseReleaseEvent(), QDeclarativeTextInput::mouseDoubleClickEvent(), QDeclarativeTextInput::mouseMoveEvent(), QDeclarativeText::mousePressEvent(), QDeclarativeTextInput::mousePressEvent(), QGraphicsItem::mousePressEvent(), QDeclarativeText::mouseReleaseEvent(), QDeclarativeTextInput::mouseReleaseEvent(), QDeclarativeTextEdit::mouseReleaseEvent(), QGraphicsTextItem::mouseReleaseEvent(), QTextControl::processEvent(), QLineControl::processEvent(), QGraphicsItemPrivate::remapItemPos(), QDeclarativeTextInputPrivate::sendMouseEventToInputContext(), QGraphicsProxyWidgetPrivate::sendWidgetMouseEvent(), setLastPos(), setLastScenePos(), setLastScreenPos(), setPos(), setScenePos(), setScreenPos(), QGraphicsWidgetPrivate::windowFrameMouseMoveEvent(), and QGraphicsWidgetPrivate::windowFrameMousePressEvent().

424 {
426  return d->pos;
427 }
The QGraphicsSceneMouseEvent class provides mouse events in the graphics view framework.
#define Q_D(Class)
Definition: qglobal.h:2482
QEventPrivate * d
Definition: qcoreevent.h:315

◆ scenePos()

QPointF QGraphicsSceneMouseEvent::scenePos ( ) const

◆ screenPos()

QPoint QGraphicsSceneMouseEvent::screenPos ( ) const

◆ setButton()

void QGraphicsSceneMouseEvent::setButton ( Qt::MouseButton  button)
Warning
This function is not part of the public interface.

Definition at line 643 of file qgraphicssceneevent.cpp.

Referenced by cloneEvent(), QGraphicsView::mouseDoubleClickEvent(), QGraphicsViewPrivate::mouseMoveEventHandler(), QGraphicsView::mousePressEvent(), QGraphicsView::mouseReleaseEvent(), and QGraphicsProxyWidgetPrivate::sendWidgetMouseEvent().

644 {
646  d->button = button;
647 }
The QGraphicsSceneMouseEvent class provides mouse events in the graphics view framework.
Qt::MouseButton button() const
Returns the mouse button (if any) that caused the event.
#define Q_D(Class)
Definition: qglobal.h:2482
QEventPrivate * d
Definition: qcoreevent.h:315

◆ setButtonDownPos()

void QGraphicsSceneMouseEvent::setButtonDownPos ( Qt::MouseButton  button,
const QPointF pos 
)
Warning
This function is not part of the public interface.

Definition at line 493 of file qgraphicssceneevent.cpp.

Referenced by cloneEvent(), QGraphicsItemPrivate::remapItemPos(), and QGraphicsScenePrivate::sendMouseEvent().

494 {
496  d->buttonDownPos.insert(button, pos);
497 }
The QGraphicsSceneMouseEvent class provides mouse events in the graphics view framework.
Qt::MouseButton button() const
Returns the mouse button (if any) that caused the event.
#define Q_D(Class)
Definition: qglobal.h:2482
QEventPrivate * d
Definition: qcoreevent.h:315

◆ setButtonDownScenePos()

void QGraphicsSceneMouseEvent::setButtonDownScenePos ( Qt::MouseButton  button,
const QPointF pos 
)
Warning
This function is not part of the public interface.

Definition at line 514 of file qgraphicssceneevent.cpp.

Referenced by QGraphicsView::mouseDoubleClickEvent(), QGraphicsViewPrivate::mouseMoveEventHandler(), QGraphicsView::mousePressEvent(), QGraphicsView::mouseReleaseEvent(), and QGraphicsScenePrivate::sendMouseEvent().

515 {
517  d->buttonDownScenePos.insert(button, pos);
518 }
The QGraphicsSceneMouseEvent class provides mouse events in the graphics view framework.
Qt::MouseButton button() const
Returns the mouse button (if any) that caused the event.
#define Q_D(Class)
Definition: qglobal.h:2482
QEventPrivate * d
Definition: qcoreevent.h:315

◆ setButtonDownScreenPos()

void QGraphicsSceneMouseEvent::setButtonDownScreenPos ( Qt::MouseButton  button,
const QPoint pos 
)
Warning
This function is not part of the public interface.

Definition at line 535 of file qgraphicssceneevent.cpp.

Referenced by cloneEvent(), QGraphicsView::mouseDoubleClickEvent(), QGraphicsViewPrivate::mouseMoveEventHandler(), QGraphicsView::mousePressEvent(), QGraphicsView::mouseReleaseEvent(), and QGraphicsScenePrivate::sendMouseEvent().

536 {
538  d->buttonDownScreenPos.insert(button, pos);
539 }
The QGraphicsSceneMouseEvent class provides mouse events in the graphics view framework.
Qt::MouseButton button() const
Returns the mouse button (if any) that caused the event.
#define Q_D(Class)
Definition: qglobal.h:2482
QEventPrivate * d
Definition: qcoreevent.h:315

◆ setButtons()

void QGraphicsSceneMouseEvent::setButtons ( Qt::MouseButtons  buttons)
Warning
This function is not part of the public interface.

Definition at line 623 of file qgraphicssceneevent.cpp.

Referenced by cloneEvent(), QGraphicsView::mouseDoubleClickEvent(), QGraphicsViewPrivate::mouseMoveEventHandler(), QGraphicsView::mousePressEvent(), QGraphicsView::mouseReleaseEvent(), and QGraphicsProxyWidgetPrivate::sendWidgetMouseEvent().

624 {
626  d->buttons = buttons;
627 }
The QGraphicsSceneMouseEvent class provides mouse events in the graphics view framework.
#define Q_D(Class)
Definition: qglobal.h:2482
QEventPrivate * d
Definition: qcoreevent.h:315
Qt::MouseButtons buttons() const
Returns the combination of mouse buttons that were pressed at the time the event was sent...

◆ setLastPos()

void QGraphicsSceneMouseEvent::setLastPos ( const QPointF pos)
Warning
This function is not part of the public interface.

Definition at line 556 of file qgraphicssceneevent.cpp.

Referenced by cloneEvent(), QGraphicsItemPrivate::remapItemPos(), and QGraphicsScenePrivate::sendMouseEvent().

557 {
559  d->lastPos = pos;
560 }
The QGraphicsSceneMouseEvent class provides mouse events in the graphics view framework.
#define Q_D(Class)
Definition: qglobal.h:2482
QEventPrivate * d
Definition: qcoreevent.h:315
QPointF pos() const
Returns the mouse cursor position in item coordinates.

◆ setLastScenePos()

void QGraphicsSceneMouseEvent::setLastScenePos ( const QPointF pos)
Warning
This function is not part of the public interface.

Definition at line 579 of file qgraphicssceneevent.cpp.

Referenced by cloneEvent(), QGraphicsView::mouseDoubleClickEvent(), QGraphicsViewPrivate::mouseMoveEventHandler(), QGraphicsView::mousePressEvent(), and QGraphicsView::mouseReleaseEvent().

580 {
582  d->lastScenePos = pos;
583 }
The QGraphicsSceneMouseEvent class provides mouse events in the graphics view framework.
#define Q_D(Class)
Definition: qglobal.h:2482
QEventPrivate * d
Definition: qcoreevent.h:315
QPointF pos() const
Returns the mouse cursor position in item coordinates.

◆ setLastScreenPos()

void QGraphicsSceneMouseEvent::setLastScreenPos ( const QPoint pos)
Warning
This function is not part of the public interface.

Definition at line 602 of file qgraphicssceneevent.cpp.

Referenced by cloneEvent(), QGraphicsView::mouseDoubleClickEvent(), QGraphicsViewPrivate::mouseMoveEventHandler(), QGraphicsView::mousePressEvent(), and QGraphicsView::mouseReleaseEvent().

603 {
605  d->lastScreenPos = pos;
606 }
The QGraphicsSceneMouseEvent class provides mouse events in the graphics view framework.
#define Q_D(Class)
Definition: qglobal.h:2482
QEventPrivate * d
Definition: qcoreevent.h:315
QPointF pos() const
Returns the mouse cursor position in item coordinates.

◆ setModifiers()

void QGraphicsSceneMouseEvent::setModifiers ( Qt::KeyboardModifiers  modifiers)
Warning
This function is not part of the public interface.

Definition at line 664 of file qgraphicssceneevent.cpp.

Referenced by cloneEvent(), QGraphicsView::mouseDoubleClickEvent(), QGraphicsViewPrivate::mouseMoveEventHandler(), QGraphicsView::mousePressEvent(), QGraphicsView::mouseReleaseEvent(), and QGraphicsProxyWidgetPrivate::sendWidgetMouseEvent().

665 {
667  d->modifiers = modifiers;
668 }
The QGraphicsSceneMouseEvent class provides mouse events in the graphics view framework.
#define Q_D(Class)
Definition: qglobal.h:2482
QEventPrivate * d
Definition: qcoreevent.h:315
Qt::KeyboardModifiers modifiers() const
Returns the keyboard modifiers in use at the time the event was sent.

◆ setPos()

void QGraphicsSceneMouseEvent::setPos ( const QPointF pos)
Warning
This function is not part of the public interface.

Definition at line 432 of file qgraphicssceneevent.cpp.

Referenced by cloneEvent(), QGraphicsItemPrivate::remapItemPos(), QGraphicsScenePrivate::sendMouseEvent(), and QGraphicsProxyWidgetPrivate::sendWidgetMouseEvent().

433 {
435  d->pos = pos;
436 }
The QGraphicsSceneMouseEvent class provides mouse events in the graphics view framework.
#define Q_D(Class)
Definition: qglobal.h:2482
QEventPrivate * d
Definition: qcoreevent.h:315
QPointF pos() const
Returns the mouse cursor position in item coordinates.

◆ setScenePos()

void QGraphicsSceneMouseEvent::setScenePos ( const QPointF pos)
Warning
This function is not part of the public interface.

Definition at line 452 of file qgraphicssceneevent.cpp.

Referenced by cloneEvent(), QGraphicsView::mouseDoubleClickEvent(), QGraphicsViewPrivate::mouseMoveEventHandler(), QGraphicsView::mousePressEvent(), and QGraphicsView::mouseReleaseEvent().

453 {
455  d->scenePos = pos;
456 }
The QGraphicsSceneMouseEvent class provides mouse events in the graphics view framework.
#define Q_D(Class)
Definition: qglobal.h:2482
QEventPrivate * d
Definition: qcoreevent.h:315
QPointF pos() const
Returns the mouse cursor position in item coordinates.

◆ setScreenPos()

void QGraphicsSceneMouseEvent::setScreenPos ( const QPoint pos)
Warning
This function is not part of the public interface.

Definition at line 472 of file qgraphicssceneevent.cpp.

Referenced by cloneEvent(), QGraphicsView::mouseDoubleClickEvent(), QGraphicsViewPrivate::mouseMoveEventHandler(), QGraphicsView::mousePressEvent(), QGraphicsView::mouseReleaseEvent(), and QGraphicsProxyWidgetPrivate::sendWidgetMouseEvent().

473 {
475  d->screenPos = pos;
476 }
The QGraphicsSceneMouseEvent class provides mouse events in the graphics view framework.
#define Q_D(Class)
Definition: qglobal.h:2482
QEventPrivate * d
Definition: qcoreevent.h:315
QPointF pos() const
Returns the mouse cursor position in item coordinates.

The documentation for this class was generated from the following files: