Problems with Open-Source Downloads read https://www.qt.io/blog/problem-with-open-source-downloads and https://forum.qt.io/post/638946

Unable to see Icon created using QSystemTrayIcon in windows "Customize notification icons"



  • I am creating an icon using QSystemTrayIcon, and I want to set the policy in the windows to show my application icon to be visible all the time, even if I minimize or maximize the notification area. If I use the windows "NOTIFYICONDATA " style I can see that my application icon is available in the "Customize notification icons" but with QSystemTrayIcon that option was not available. Any idea how can I customize this using Qt.


  • Lifetime Qt Champion

    Hi,

    That's what is used by QSystemTrayIcon on Windows.

    How are you currently using it ?



  • @SGaist: Yes, using QSystemTrayIcon am able to display the icon for the application. But I want my icon to be always visible in the notification area (as below)

    0_1542017798869_3262ed78-dbd5-471b-952b-a96b8bc0abdf-image.png

    With my current code I see the icon in the notification area initially, but when I try to maximize the notification area, my icon goes in to the overflow area (as below)
    0_1542018237743_6f989037-1696-437b-8e1b-919e4bc9cbf7-image.png

    I thought it's windows that has the control on how the notification icons are displayed in the tray. So I tried to look in the control panel to customize my application notifications to be always visible.

    0_1542018515834_f1db0bde-6819-43f7-83a3-d9db917816e1-image.png

    I was not able to find my application entry in this list.


  • Lifetime Qt Champion

    Even when your application is running ?



  • @SGaist Yes. Only way I can make it always visible is by promoting my icon to the system tray area (by drag/drog the icon from the overflow area).


  • Lifetime Qt Champion

    How do you do it in your application when not using QSystemTrayIcon ?


Log in to reply