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

QSystemTrayIcon does not allow QWidgetAction in context menu

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Not Evaluated Not Evaluated
    • None
    • 4.8.1
    • GUI: Workspace
    • None

      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.

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

            Unassigned Unassigned
            mbroadst Matt Broadstone
            Votes:
            5 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes