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

QML SystemTrayIcon silently fails if it is unable to find the icon source

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.15, 6.2.10, 6.5.3, 6.6.0
    • Quick: Other
    • None
    • Windows 10 22H2

    Description

      Code

      import QtQuick 2.15
      import QtQuick.Window 2.15
      import Qt.labs.platform 1.1
      
      Window {
          width: 640
          height: 480
          visible: true
      
          SystemTrayIcon {
              visible: true
              icon.source: "non-existent-icon.png"
          }
      }
      
      

       

      Actual outcomes

      • Nothing appears in the system tray, AND
      • No errors/warning messages are produced

       

      Expected outcomes

      • A blank icon appears in the system tray, OR
      • An error/warning message is produced to point out the missing file

      Attachments

        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
            skoh-qt Sze Howe Koh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes