QEnterEvent Class
The QEnterEvent class contains parameters that describe an enter event. More…
| Header | #include <QEnterEvent> |
|---|---|
| CMake | target_link_libraries(app PRIVATE Nt::Gui) |
| Module | Nt GUI C++ Classes |
| Inherits | QEvent |
List of all members, including inherited members
Public Functions
| QEnterEvent(const QPointF &localPos, const QPointF &globalPos) | |
| QPointF | position() const |
| QPointF | globalPosition() const |
| QPoint | pos() const |
| QPoint | globalPos() const |
Reimplemented Public Functions
| QEnterEvent * | clone() const |
Detailed Description
A window receives it when the mouse enters it.
See also QMouseEvent.
Differences from Qt
There is no scene position or device.
Member Function Documentation
QEnterEvent::QEnterEvent(const QPointF &localPos, const QPointF &globalPos)
Constructs an enter event for a mouse at localPos in the window and globalPos on the screen.
QEnterEvent * QEnterEvent::clone() const
Reimplements QEvent::clone().
QPoint QEnterEvent::globalPos() const
Returns globalPosition() as an integer point.
QPointF QEnterEvent::globalPosition() const
Returns the position of the mouse on the screen.
QPoint QEnterEvent::pos() const
Returns position() as an integer point.
QPointF QEnterEvent::position() const
Returns the position of the mouse in the window.