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

QMenu::aboutToShow() and aboutToHide() not emitted on QSystemTrayIcon menu on linux

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 5.6.0
    • Other
    • None
    • Debian Jessie 64bit with KDE Plasma

      On Linux (exact platform see above) the signals QMenu::aboutToShow() and QMenu::aboutToHide() are not emitted on a menu which is set on a tray icon with QSystemTrayIcon::setContextMenu().

      This can be easily reproduced with the attached little example source code:
      The QLCDNumber in the main window is incremented on aboutToShow() and decremented on aboutToHide().
      This works fine with the main menu.
      It doesnt work with the tray icon menu on linux (but it does on Windows7).

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            cyril4 Harald Prasser
            Votes:
            4 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes