QWidget::setMask ignored on MouseMoved events in Cocoa (macOS)
-
Hello,
Qt 6.2 docs says that Masked widgets receive mouse events only on their visible portions in https://doc.qt.io/qt-6/qwidget.html#setMask, but it seems that this only applies to MouseDown events. The handler of MouseMoved events don't take into account the mask of the widget.
If I look at the implementation of mouseMovedImpl in qtbase/src/plugins/platforms/cocoa/qnsview_mouse.mm the mask is ignored while if I look at the implementation of handleMouseDownEvent the mask is taken into account to forward or process the event.
Am I missing something? Is it possible that it is a bug?
Thanks in advance
-
Hi and welcome to devnet,
That does sound like something is incomplete.
You should check the bug report system to see if there's already something about it. If not please open a new issue with a minimal compilable example that triggers the behavior
Since you already know where things might be missing, you could consider providing a patch :-)