262 #ifndef QT_NO_DEBUG_STREAM
263 #include <QtCore/qdebug.h>
264 #include <private/qdebug_p.h>
266 #include <QtCore/qmap.h>
267 #include <QtCore/qpoint.h>
268 #include <QtCore/qsize.h>
269 #include <QtCore/qstring.h>
272 #include <QtWidgets/qgesture.h>
273 #include <private/qevent_p.h>
473 return d->buttonDownPos.value(
button);
494 return d->buttonDownScenePos.value(
button);
515 return d->buttonDownScreenPos.value(
button);
559 return d->lastScenePos;
568 d->lastScenePos =
pos;
582 return d->lastScreenPos;
591 d->lastScreenPos =
pos;
880 return d->orientation;
902 return d->scrollPhase;
911 d->scrollPhase = scrollPhase;
927 return d->pixelDelta;
956 d->inverted = inverted;
1048 return d->screenPos;
1070 return d->modifiers;
1196 return d->screenPos;
1246 return d->lastScenePos;
1255 d->lastScenePos =
pos;
1270 return d->lastScreenPos;
1279 d->lastScreenPos =
pos;
1290 return d->modifiers;
1363 return d->screenPos;
1477 return d->screenPos;
1527 return d->modifiers;
1554 return d->possibleActions;
1567 d->possibleActions = actions;
1581 return d->proposedAction;
1613 d->dropAction =
d->proposedAction;
1627 return d->dropAction;
1820 #ifndef QT_NO_DEBUG_STREAM
1821 template <
class Event>
1825 QtDebugUtils::formatQPoint(
debug,
event->pos());
1826 debug <<
", scenePos=";
1827 QtDebugUtils::formatQPoint(
debug,
event->scenePos());
1828 debug <<
", screenPos=";
1829 QtDebugUtils::formatQPoint(
debug,
event->screenPos());
1837 debug <<
"QGraphicsSceneEvent(0)";
1849 const Qt::MouseButtons buttons = me->
buttons();
1850 debug <<
"QGraphicsSceneMouseEvent(";
1856 if (buttons &&
button != buttons) {
1857 debug <<
", buttons=";
1858 QtDebugUtils::formatQFlags(
debug, buttons);
1861 formatPositions(
debug, me);
1862 QtDebugUtils::formatNonNullQEnum(
debug,
", ", me->
source());
1863 QtDebugUtils::formatNonNullQFlags(
debug,
", flags=", me->
flags());
1869 debug <<
"QGraphicsSceneContextMenuEvent(reason=" << ce->
reason();
1871 formatPositions(
debug, ce);
1878 debug <<
"QGraphicsSceneHoverEvent(";
1889 debug <<
"QGraphicsSceneDragDropEvent(proposedAction=";
1891 debug <<
", possibleActions=";
1894 QtDebugUtils::formatNonNullQFlags(
debug,
", buttons=", de->
buttons());
1896 formatPositions(
debug, de);
1901 debug <<
"QGraphicsSceneWheelEvent(";
1902 QtDebugUtils::formatNonNullQFlags(
debug,
", buttons=", we->
buttons());
1904 formatPositions(
debug, we);
operator<<(QDataStream &ds, qfloat16 f)
The QDebug class provides an output stream for debugging information.
Convenience class for custom QDebug operators.
The QEvent class is the base class of all event classes. Event objects contain event parameters.
@ GraphicsSceneContextMenu
@ GraphicsSceneMouseRelease
@ GraphicsSceneMousePress
@ GraphicsSceneHoverLeave
@ GraphicsSceneMouseDoubleClick
@ GraphicsSceneHoverEnter
The QGraphicsSceneDragDropEvent class provides events for drag and drop in the graphics view framewor...
void setButtons(Qt::MouseButtons buttons)
void setMimeData(const QMimeData *data)
void setPossibleActions(Qt::DropActions actions)
void setProposedAction(Qt::DropAction action)
void setModifiers(Qt::KeyboardModifiers modifiers)
~QGraphicsSceneDragDropEvent()
Qt::DropAction dropAction() const
void setDropAction(Qt::DropAction action)
Qt::DropActions possibleActions() const
void setSource(QWidget *source)
Qt::KeyboardModifiers modifiers() const
void setScreenPos(const QPoint &pos)
void setPos(const QPointF &pos)
Qt::MouseButtons buttons() const
const QMimeData * mimeData() const
void acceptProposedAction()
void setScenePos(const QPointF &pos)
QGraphicsSceneDragDropEvent(Type type=None)
Qt::DropAction proposedAction() const
Qt::KeyboardModifiers modifiers
QGraphicsSceneDragDropEventPrivate()
Qt::DropAction dropAction
const QMimeData * mimeData
Qt::DropActions possibleActions
Qt::DropAction proposedAction
The QGraphicsSceneEvent class provides a base class for all graphics view related events.
QScopedPointer< QGraphicsSceneEventPrivate > d_ptr
void setWidget(QWidget *widget)
QGraphicsSceneEvent(Type type)
void setTimestamp(quint64 ts)
quint64 timestamp() const
QGraphicsSceneEvent * q_ptr
QGraphicsSceneEventPrivate()
virtual ~QGraphicsSceneEventPrivate()
The QGraphicsSceneHelpEvent class provides events when a tooltip is requested.
QGraphicsSceneHelpEvent(Type type=None)
void setScenePos(const QPointF &pos)
~QGraphicsSceneHelpEvent()
void setScreenPos(const QPoint &pos)
The QGraphicsSceneHoverEvent class provides hover events in the graphics view framework.
void setScreenPos(const QPoint &pos)
void setPos(const QPointF &pos)
QPoint lastScreenPos() const
void setLastPos(const QPointF &pos)
void setScenePos(const QPointF &pos)
void setModifiers(Qt::KeyboardModifiers modifiers)
QPointF lastScenePos() const
QGraphicsSceneHoverEvent(Type type=None)
~QGraphicsSceneHoverEvent()
void setLastScenePos(const QPointF &pos)
void setLastScreenPos(const QPoint &pos)
Qt::KeyboardModifiers modifiers() const
Qt::KeyboardModifiers modifiers
The QGraphicsSceneMouseEvent class provides mouse events in the graphics view framework.
Qt::MouseButton button() const
void setFlags(Qt::MouseEventFlags)
void setButtonDownPos(Qt::MouseButton button, const QPointF &pos)
QPointF lastScenePos() const
QPointF buttonDownScenePos(Qt::MouseButton button) const
Qt::MouseEventFlags flags() const
QGraphicsSceneMouseEvent(Type type=None)
void setLastScenePos(const QPointF &pos)
Qt::MouseEventSource source() const
~QGraphicsSceneMouseEvent()
QPoint buttonDownScreenPos(Qt::MouseButton button) const
void setLastPos(const QPointF &pos)
QPoint lastScreenPos() const
void setButton(Qt::MouseButton button)
Qt::KeyboardModifiers modifiers() const
void setScenePos(const QPointF &pos)
void setPos(const QPointF &pos)
Qt::MouseButtons buttons() const
void setButtonDownScenePos(Qt::MouseButton button, const QPointF &pos)
void setButtons(Qt::MouseButtons buttons)
void setModifiers(Qt::KeyboardModifiers modifiers)
void setButtonDownScreenPos(Qt::MouseButton button, const QPoint &pos)
void setLastScreenPos(const QPoint &pos)
QPointF buttonDownPos(Qt::MouseButton button) const
void setSource(Qt::MouseEventSource source)
void setScreenPos(const QPoint &pos)
QMap< Qt::MouseButton, QPointF > buttonDownScenePos
QGraphicsSceneMouseEventPrivate()
QMap< Qt::MouseButton, QPointF > buttonDownPos
Qt::KeyboardModifiers modifiers
Qt::MouseEventFlags flags
QMap< Qt::MouseButton, QPoint > buttonDownScreenPos
Qt::MouseEventSource source
The QGraphicsSceneMoveEvent class provides events for widget moving in the graphics view framework.
void setOldPos(const QPointF &pos)
void setNewPos(const QPointF &pos)
QGraphicsSceneMoveEvent()
~QGraphicsSceneMoveEvent()
QGraphicsSceneMoveEventPrivate()
The QGraphicsSceneResizeEvent class provides events for widget resizing in the graphics view framewor...
void setOldSize(const QSizeF &size)
~QGraphicsSceneResizeEvent()
QGraphicsSceneResizeEvent()
void setNewSize(const QSizeF &size)
QGraphicsSceneResizeEventPrivate()
The QGraphicsSceneWheelEvent class provides wheel events in the graphics view framework.
void setScreenPos(const QPoint &pos)
void setPixelDelta(QPoint delta)
Qt::KeyboardModifiers modifiers() const
void setInverted(bool inverted)
Qt::Orientation orientation() const
QGraphicsSceneWheelEvent(Type type=None)
void setButtons(Qt::MouseButtons buttons)
void setPos(const QPointF &pos)
Qt::MouseButtons buttons() const
void setScenePos(const QPointF &pos)
void setOrientation(Qt::Orientation orientation)
Qt::ScrollPhase phase() const
QPoint pixelDelta() const
void setModifiers(Qt::KeyboardModifiers modifiers)
void setPhase(Qt::ScrollPhase scrollPhase)
~QGraphicsSceneWheelEvent()
Qt::Orientation orientation
Qt::ScrollPhase scrollPhase
QGraphicsSceneWheelEventPrivate()=default
Qt::KeyboardModifiers modifiers
The QMimeData class provides a container for data that records information about its MIME type.
The QPointF class defines a point in the plane using floating point precision.
The QPoint class defines a point in the plane using integer precision.
The QSizeF class defines the size of a two-dimensional object using floating point precision.
@ MouseEventNotSynthesized
unsigned long long quint64
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLsizei GLsizei GLchar * source