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

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 5.12.4
    • 5.12.0
    • Widgets: GraphicsView
    • None
    • macOS Mojave
    • macOS

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes