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

Right-click using two-finger tap on Mac trackpad

    XMLWordPrintable

Details

    • macOS

    Description

      The attached QML code has both a MultiPointTouchArea and MouseArea. The MouseArea is used to bring up a context menu with a Right-click. The MultiPointTouchArea is completely disabled in this example, but in my real app it is needed to handle Trackpad pinch-zooming.

      Everything works fine with this code, except when using macOS with the Trackpad system preferences set to "Secondary click with two fingers" (which is the default for macOS). 

      If I comment-out the MultiPointTouchArea, then the two-finger click works fine.

      Right-clicking with a real mouse works fine, so does using the bottom-corner click setting.

      In the MouseArea, I experimented using either onClicked or onPressed. When the bug is present, the clicked signal is not emitted at all. The pressed signal is emitted, but something happens to the popup Menu to cause it to be removed as soon as the two-finger click is released.

      main.qml

       

       

       

      Attachments

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

        Activity

          People

            vhilshei Volker Hilsheimer
            rss Richard Stephens
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes