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

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

    XMLWordPrintable

Details

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

    Description

      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).

      Attachments

        1. QTrayIcon_MenuAboutToShow_Bug.tgz
          2 kB
          Harald Prasser
        2. fix55911.mp4
          1.26 MB
          xsteptech
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes