QtBase
v6.3.1
|
The QGraphicsSceneHoverEvent class provides hover events in the graphics view framework. More...
#include <qgraphicssceneevent.h>
The QGraphicsSceneHoverEvent class provides hover events in the graphics view framework.
\inmodule QtWidgets
When a QGraphicsView receives a QHoverEvent event, it translates it into QGraphicsSceneHoverEvent. The event is then forwarded to the QGraphicsScene associated with the view.
Definition at line 207 of file qgraphicssceneevent.h.
Definition at line 1125 of file qgraphicssceneevent.cpp.
QGraphicsSceneHoverEvent::~QGraphicsSceneHoverEvent | ( | ) |
Destroys the event.
Definition at line 1133 of file qgraphicssceneevent.cpp.
QPointF QGraphicsSceneHoverEvent::lastPos | ( | ) | const |
Returns the last recorded mouse cursor position in item coordinates.
Definition at line 1219 of file qgraphicssceneevent.cpp.
QPointF QGraphicsSceneHoverEvent::lastScenePos | ( | ) | const |
Returns the last recorded, the scene coordinates of the previous mouse or hover event received by the view, that created the event mouse cursor position in scene coordinates.
Definition at line 1243 of file qgraphicssceneevent.cpp.
QPoint QGraphicsSceneHoverEvent::lastScreenPos | ( | ) | const |
Returns the last recorded mouse cursor position in screen coordinates. The last recorded position is the position of the previous mouse or hover event received by the view that created the event.
Definition at line 1267 of file qgraphicssceneevent.cpp.
Qt::KeyboardModifiers QGraphicsSceneHoverEvent::modifiers | ( | ) | const |
Returns the keyboard modifiers at the moment the hover event was sent.
Definition at line 1287 of file qgraphicssceneevent.cpp.
QPointF QGraphicsSceneHoverEvent::pos | ( | ) | const |
Returns the position of the mouse cursor in item coordinates at the moment the hover event was sent.
Definition at line 1143 of file qgraphicssceneevent.cpp.
QPointF QGraphicsSceneHoverEvent::scenePos | ( | ) | const |
Returns the position of the mouse cursor in scene coordinates at the moment the hover event was sent.
Definition at line 1168 of file qgraphicssceneevent.cpp.
QPoint QGraphicsSceneHoverEvent::screenPos | ( | ) | const |
Returns the position of the mouse cursor in screen coordinates at the moment the hover event was sent.
Definition at line 1193 of file qgraphicssceneevent.cpp.
Definition at line 1252 of file qgraphicssceneevent.cpp.
Definition at line 1276 of file qgraphicssceneevent.cpp.
void QGraphicsSceneHoverEvent::setModifiers | ( | Qt::KeyboardModifiers | modifiers | ) |
Definition at line 1181 of file qgraphicssceneevent.cpp.
Definition at line 1206 of file qgraphicssceneevent.cpp.