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

Re[5.6->5.15] SystemTrayIcon::isSystemTrayAvailable() crashes in certain situation.

    XMLWordPrintable

Details

    • Windows

    Description

      If QSystemTrayIcon::isSystemTrayAvailable() is checked before QApplication is instantiated , then program crashed. Same used to work with older version of Qt. 

      This breaks following use case to use QCoreApplication or QAappliction. 

      "There is a command-line argument that will specify whether to start a gui or non-gui instance of the program. The gui parts of the program are entirely associated with the SystemTray. If the user specifies a gui instance, we check if the SystemTray is available. If it is not, we still proceed with a non-gui QCoreApplication.":

      Since isSystemTrayAvailable() is static function it should work.

      Attachments

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            irfan.omair@digia.com Irfan Omair
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: