Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

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

    General and Desktop
    2
    6
    547
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • chaithubk
      chaithubk last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        That's what is used by QSystemTrayIcon on Windows.

        How are you currently using it ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        chaithubk 1 Reply Last reply Reply Quote 1
        • chaithubk
          chaithubk @SGaist last edited by

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

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            Even when your application is running ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            chaithubk 1 Reply Last reply Reply Quote 0
            • chaithubk
              chaithubk @SGaist last edited by

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

              1 Reply Last reply Reply Quote 0
              • SGaist
                SGaist Lifetime Qt Champion last edited by

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

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post