Skip to content

Fix missing HoverEnter event to next Object after pointerFocusEventOb…#529

Closed
wineee wants to merge 1 commit intovioken:masterfrom
wineee:HoverEnter
Closed

Fix missing HoverEnter event to next Object after pointerFocusEventOb…#529
wineee wants to merge 1 commit intovioken:masterfrom
wineee:HoverEnter

Conversation

@wineee
Copy link
Copy Markdown
Member

@wineee wineee commented Oct 30, 2024

…ject destroyed

onEventObjectDestroy = QObject::connect(eventObject, &QObject::destroyed,
q_func(), [this] {
doClearPointerFocus();
// Qt missing HoverEnter event to next Object after pointerFocusEventObject destroyed
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See frameSynchronousHoverEnabled

doClearPointerFocus();
// Qt missing HoverEnter event to next Object after pointerFocusEventObject destroyed
QHoverEvent hoverEvent(QEvent::HoverEnter, QPointF(0,0), cursor->position(), cursor->position(),
Qt::NoModifier);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is Qt::NoModifier

q_func(), [this] {
doClearPointerFocus();
// Qt missing HoverEnter event to next Object after pointerFocusEventObject destroyed
QHoverEvent hoverEvent(QEvent::HoverEnter, QPointF(0,0), cursor->position(), cursor->position(),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why scene position is 0,0

@wineee
Copy link
Copy Markdown
Member Author

wineee commented Nov 8, 2024

Seems #523 fixed it

@wineee wineee closed this Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants