Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. QWidget::setMask ignored on MouseMoved events in Cocoa (macOS)
Forum Updated to NodeBB v4.3 + New Features

QWidget::setMask ignored on MouseMoved events in Cocoa (macOS)

Scheduled Pinned Locked Moved Unsolved Qt 6
3 Posts 2 Posters 348 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    KilianBl
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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 :-)

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • K Offline
        K Offline
        KilianBl
        wrote on last edited by
        #3

        Hi @SGaist,

        Thanks for your welcome.

        Following your advice I've created the bug https://bugreports.qt.io/browse/QTBUG-99256.

        1 Reply Last reply
        1

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved