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

QSystemTrayIcon does not allow QWidgetAction in context menu

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: 4.8.1
    • Fix Version/s: None
    • Component/s: GUI: Workspace
    • Labels:
      None

      Description

      Attached is a sample application that creates a simple QMenu with one QWidgetAction entry in it (this in turn wraps a QPushButton). As you can see, when the QMenu is assigned to the QPushButton the resulting drop down menu is correct, but when the QMenu is associated with the context menu of the QSystemTrayIcon you get an empty drop down. As far as I'm reading through the source, it seems like all that happens (on the x11 version) in the mouseDown event for the QSystemTrayIcon is menu->popup(globalPos), meaning this should be popping up a normal QMenu.

        Attachments

        1. test_widgetaction.cpp
          0.6 kB
          Matt Broadstone

          Issue Links

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

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              mbroadst Matt Broadstone
              Votes:
              4 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes