- Qt 6.4
- Qt GUI
- C++ Classes
- QEnterEvent
- Qt 6.4.2 Reference Documentation

# Obsolete Members for QEnterEvent

The following members of class QEnterEvent are deprecated. They are provided to keep old source code working. We strongly advise against using them in new code.

## Public Functions

`(deprecated (6.0))` QPoint | globalPos() const
`(deprecated (6.0))` int | globalX() const
`(deprecated (6.0))` int | globalY() const
`(deprecated (6.0))` QPointF | localPos() const
`(deprecated (6.0))` QPoint | pos() const
`(deprecated (6.0))` QPointF | screenPos() const
`(deprecated (6.0))` QPointF | windowPos() const
`(deprecated (6.0))` int | x() const
`(deprecated (6.0))` int | y() const

## Member Function Documentation

### QPoint QEnterEvent::globalPos() const

This function is deprecated since 6.0. We strongly advise against using it in new code.

Use globalPosition() instead.

Returns the global position of the mouse cursor at the time of the event.

### int QEnterEvent::globalX() const

This function is deprecated since 6.0. We strongly advise against using it in new code.

Use globalPosition().x() instead.

Returns the global position on the X-axis of the mouse cursor at the time of the event.

### int QEnterEvent::globalY() const

This function is deprecated since 6.0. We strongly advise against using it in new code.

Use globalPosition().y() instead.

Returns the global position on the Y-axis of the mouse cursor at the time of the event.

### QPointF QEnterEvent::localPos() const

This function is deprecated since 6.0. We strongly advise against using it in new code.

Use position() instead.

Returns the mouse cursor's position relative to the receiving widget.

### QPoint QEnterEvent::pos() const

This function is deprecated since 6.0. We strongly advise against using it in new code.

Use position().toPoint() instead.

Returns the position of the mouse cursor relative to the receiving widget.

### QPointF QEnterEvent::screenPos() const

This function is deprecated since 6.0. We strongly advise against using it in new code.

Use globalPosition() instead.

Returns the position of the mouse cursor relative to the receiving screen.

### QPointF QEnterEvent::windowPos() const

This function is deprecated since 6.0. We strongly advise against using it in new code.

Use scenePosition() instead.

Returns the position of the mouse cursor relative to the receiving window.

### int QEnterEvent::x() const

This function is deprecated since 6.0. We strongly advise against using it in new code.

Use position().x() instead.

Returns the x position of the mouse cursor relative to the receiving widget.

### int QEnterEvent::y() const

This function is deprecated since 6.0. We strongly advise against using it in new code.

Use position().y() instead.

Returns the y position of the mouse cursor relative to the receiving widget.