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

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

      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.

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

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

              Created:
              Updated:

                There are no open Gerrit changes