6.0.0-rc4Source

QEnterEvent Class

The QEnterEvent class contains parameters that describe an enter event. More…

Header#include <QEnterEvent>
CMaketarget_link_libraries(app PRIVATE Nt::Gui)
ModuleNt GUI C++ Classes
InheritsQEvent

List of all members, including inherited members

Public Functions

QEnterEvent(const QPointF &localPos, const QPointF &globalPos)
QPointFposition() const
QPointFglobalPosition() const
QPointpos() const
QPointglobalPos() 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.

[override] 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.