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

[MAC][5.6] Extra (back forward) mouse buttons are incorrect

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3: Somewhat important P3: Somewhat important
    • 5.10
    • 5.6
    • QPA
    • None
    • macOS 10.13, Qt 5.6 from git
    • macOS

      The mouse extra buttons such as "back" are incorrectly delivered. In this case "back" is delivered as "middle".

       

      This issue is fixed in Qt 5.10, but should be backported to the LTS.

       

      Here is the fix as implemented in 5.10, it works on 5.6 as well:

      /src/plugins/platforms/cocoa/qcocoahelpers.mm

       

      Qt::MouseButton cocoaButton2QtButton(NSInteger buttonNum)
      {
          if (buttonNum >= 0 && buttonNum <= 31)
              return Qt::MouseButton(1 << buttonNum);
          return Qt::NoButton;
      }
      

       

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

            qt.team.graphics.and.multimedia Qt Graphics Team
            mnaydenov Mihail Naydenov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes