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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Need More Info
    • Priority: P3: Somewhat important
    • Resolution: Incomplete
    • Affects Version/s: 5.6
    • Fix Version/s: None
    • Component/s: QPA
    • Labels:
      None
    • Environment:
      macOS 10.13, Qt 5.6 from git
    • Platform/s:
      macOS

      Description

      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;
      }
      

       

        Attachments

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

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes