Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-67503

REG->5.9.4: Mouse tracking doesn't work with QMacCocoaViewContainer

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 5.9.4, 5.10.1
    • Extras: Mac
    • None
    • macOS 10.13
    • macOS

    Description

      Find the demo project attached. It creates a QMacCocoaViewContainer and NSView inside it. setMouseTracking(true) is called on the QMacCocoaViewContainer, but this call has no effect: mouseMove events are only received while a mouse button is pressed. That can be seen from watching the application output (qDebug is used to log the events).

      Additionally, even when the container receives mouse events, the underlying NSView does not receive them. I'm not entirely sure whether it's by design or a bug, but seems like a bug.

      This is a regression from an older version of Qt 5, but I don't know which. Probably from 5.7 or 5.8.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            alexium Alex
            Veli-Pekka Heinonen Veli-Pekka Heinonen
            Votes:
            3 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes