- Qt 6.8
- Qt GUI
- C++ Classes
- QEnterEvent
- Qt 6.8.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 in 6.0)` QPoint | globalPos() const
`(deprecated in 6.0)` int | globalX() const
`(deprecated in 6.0)` int | globalY() const
`(deprecated in 6.0)` QPointF | localPos() const
`(deprecated in 6.0)` QPoint | pos() const
`(deprecated in 6.0)` QPointF | screenPos() const
`(deprecated in 6.0)` QPointF | windowPos() const
`(deprecated in 6.0)` int | x() const
`(deprecated in 6.0)` int | y() const

## Member Function Documentation

### `[deprecated in 6.0]` 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.

### `[deprecated in 6.0]` 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.

### `[deprecated in 6.0]` 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.

### `[deprecated in 6.0]` 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.

### `[deprecated in 6.0]` 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.

### `[deprecated in 6.0]` 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.

### `[deprecated in 6.0]` 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.

### `[deprecated in 6.0]` 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.

### `[deprecated in 6.0]` 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.