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

QSystemTrayIcon is not recovering properly QMenu's display after a blocking call

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Not Evaluated Not Evaluated
    • None
    • 4.7.4
    • GUI: Window management
    • None
    • Windows 7

      Sleeping in the main thread is of course not recommended, but the issue also happens when clicking too fast on the icon.

      1- Right click on the icon
      2- Wait for the SLEEP() to finish
      3- The menu is correctly displayed AFTER the SLEEP()

      Now, introduce this step after the first step (right click on the icon):
      1'- Right click again on the icon while it's being sleeping

      From this step, there's no way to get the menu back, you have to restart the application.

      See attachment for code and screenshot

        1. qt-systemtrayicon-bug.png
          6 kB
          COLE Edouard
        2. systemtray.cpp
          0.9 kB
          COLE Edouard
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Unassigned Unassigned
            ed COLE Edouard
            Votes:
            8 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes