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

[REG 5.7.0->5.12.0] macOS: mouse move events button() method returns Qt::LeftButton

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.12.0
    • Fix Version/s: 5.12.4
    • Component/s: Widgets: GraphicsView
    • Labels:
      None
    • Environment:
      macOS Mojave
    • Platform/s:
      macOS

      Description

      According to your documentation https://doc.qt.io/qt-5/qmouseevent.html#button, events with the type MouseMove, should return Qt::NoButton from their button() method, and it was the case at least in Qt5.7.0.   Yet right now, while using Qt5.12.0, button() for those type of events reports Qt::LeftButton on macOS (and only on macOS; Linux and Windows are fine).  Please see attached example project.

        Attachments

          Issue Links

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

            Activity

              People

              • Assignee:
                mikhailsvetkin Mikhail Svetkin
                Reporter:
                dmytrosh Dmytro Shtepa
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes