PushButton doesn't work when under a widget with mousePassThrough enabled

Create issue
Issue #154 resolved
Former user created an issue

Automatic migration. Original reporter: "ilveroluca"

When a PushButton is under another Window that has mousePassThrough and AlwaysOnTop enabled, it doesn't emit EventClicked events.

The problem seems to be in PushButton::onMouseButtonUp. The method checks whether getChildAtPosition returns this, calling PushButton::onClick only if it does. The problem is that getChildAtPosition doesn't consider the mousePassThrough property.

I think the correct way to resolve the issue would be to call getTargetChildAtPosition instead of getChildAtPosition.

Reproducibility: always

Comments (1)

  1. Log in to comment