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

Suggestion for having a way to know if a QEvent::ContextMenu event will follow a QMouseButtonPress event

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P3: Somewhat important
    • Some future release
    • 4.3.3
    • Core: Event loop
    • None

    Description

      When using a QMouseButtonPress in an application that for example adds items to a scene with QMouseButtonPress,
      it is impossible to know when the QMouseButtonPress/QMouseButtonReleased is happening if a QEvent::ContextMenu event will follow.

      When the context menu is shown it is not desired to have the same behaviour as a regular mouse button press.

      The QMouseEvent does not have any notion of primary and secondary button, and will only given left or right mouse button, but not if they
      are the primary button or secondary button which will cause a context menu event.

      The QEvent::ContextMenu is correctly switched according to what button is currently set in the system preferences.

      Attachments

        Issue Links

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

          Activity

            People

              sorvig Morten Sørvig
              admin Administrator
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes