42 #ifndef QGRAPHICSSCENEEVENT_H 43 #define QGRAPHICSSCENEEVENT_H 45 #include <QtCore/qcoreevent.h> 46 #include <QtCore/qpoint.h> 47 #include <QtCore/qscopedpointer.h> 48 #include <QtCore/qrect.h> 49 #include <QtGui/qpolygon.h> 50 #include <QtCore/qset.h> 51 #include <QtCore/qhash.h> 59 #if !defined(QT_NO_GRAPHICSVIEW) || (QT_EDITION & QT_MODULE_GRAPHICSVIEW) != QT_MODULE_GRAPHICSVIEW 74 void setWidget(
QWidget *widget);
92 void setPos(
const QPointF &pos);
95 void setScenePos(
const QPointF &pos);
98 void setScreenPos(
const QPoint &pos);
110 void setLastPos(
const QPointF &pos);
113 void setLastScenePos(
const QPointF &pos);
115 QPoint lastScreenPos()
const;
116 void setLastScreenPos(
const QPoint &pos);
118 Qt::MouseButtons
buttons()
const;
119 void setButtons(Qt::MouseButtons buttons);
124 Qt::KeyboardModifiers modifiers()
const;
125 void setModifiers(Qt::KeyboardModifiers modifiers);
140 void setPos(
const QPointF &pos);
143 void setScenePos(
const QPointF &pos);
146 void setScreenPos(
const QPoint &pos);
148 Qt::MouseButtons
buttons()
const;
149 void setButtons(Qt::MouseButtons buttons);
151 Qt::KeyboardModifiers modifiers()
const;
152 void setModifiers(Qt::KeyboardModifiers modifiers);
155 void setDelta(
int delta);
175 void setPos(
const QPointF &pos);
178 void setScenePos(
const QPointF &pos);
181 void setScreenPos(
const QPoint &pos);
183 Qt::KeyboardModifiers modifiers()
const;
184 void setModifiers(Qt::KeyboardModifiers modifiers);
187 void setReason(
Reason reason);
202 void setPos(
const QPointF &pos);
205 void setScenePos(
const QPointF &pos);
208 void setScreenPos(
const QPoint &pos);
211 void setLastPos(
const QPointF &pos);
214 void setLastScenePos(
const QPointF &pos);
216 QPoint lastScreenPos()
const;
217 void setLastScreenPos(
const QPoint &pos);
219 Qt::KeyboardModifiers modifiers()
const;
220 void setModifiers(Qt::KeyboardModifiers modifiers);
235 void setScenePos(
const QPointF &pos);
238 void setScreenPos(
const QPoint &pos);
253 void setPos(
const QPointF &pos);
256 void setScenePos(
const QPointF &pos);
259 void setScreenPos(
const QPoint &pos);
261 Qt::MouseButtons
buttons()
const;
262 void setButtons(Qt::MouseButtons buttons);
264 Qt::KeyboardModifiers modifiers()
const;
265 void setModifiers(Qt::KeyboardModifiers modifiers);
267 Qt::DropActions possibleActions()
const;
268 void setPossibleActions(Qt::DropActions actions);
272 void acceptProposedAction();
278 void setSource(
QWidget *source);
298 void setOldSize(
const QSizeF &size);
301 void setNewSize(
const QSizeF &size);
314 void setOldPos(
const QPointF &pos);
317 void setNewPos(
const QPointF &pos);
320 #endif // QT_NO_GRAPHICSVIEW
#define QT_END_NAMESPACE
This macro expands to.
QScopedPointer< QGraphicsSceneEventPrivate > d_ptr
QPointer< QWidget > widget
The QPointF class defines a point in the plane using floating point precision.
The QGraphicsSceneMouseEvent class provides mouse events in the graphics view framework.
static Qt::MouseButtons buttons
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
The QGraphicsSceneResizeEvent class provides events for widget resizing in the graphics view framewor...
The QGraphicsSceneMoveEvent class provides events for widget moving in the graphics view framework...
The QSizeF class defines the size of a two-dimensional object using floating point precision...
#define QT_BEGIN_NAMESPACE
This macro expands to.
static const char * data(const QByteArray &arr)
The QGraphicsSceneEvent class provides a base class for all graphics view related events...
The QMimeData class provides a container for data that records information about its MIME type...
The QGraphicsSceneHelpEvent class provides events when a tooltip is requested.
The QGraphicsSceneDragDropEvent class provides events for drag and drop in the graphics view framewor...
Type
This enum type defines the valid event types in Qt.
The QPoint class defines a point in the plane using integer precision.
#define Q_DECLARE_PRIVATE(Class)
The QGraphicsSceneWheelEvent class provides wheel events in the graphics view framework.
The QEvent class is the base class of all event classes.
The QGraphicsSceneHoverEvent class provides hover events in the graphics view framework.