Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QSystemTrayIcon Message on MacOS without Buttons

QSystemTrayIcon Message on MacOS without Buttons

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 2 Posters 2.0k Views
  • 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.
  • R Offline
    R Offline
    roundcubes
    wrote on last edited by
    #1

    Hello,

    after upgrade to 5.9.1 the tray icon message under MacOS has two Buttons, Close and Show. With this the message will not hide after timeout. Is there a second option for this?

    I use

    trayIcon->showMessage("Hello World",QSystemTrayIcon::Information,5000);
    

    alt text

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What was the previous version you used ?

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

      R 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        What was the previous version you used ?

        R Offline
        R Offline
        roundcubes
        wrote on last edited by
        #3

        @SGaist Previous was 5.9.0

        1 Reply Last reply
        0
        • R Offline
          R Offline
          roundcubes
          wrote on last edited by
          #4

          In plist.info the Key NSUserNotificationAlertStyle was set to alert. Modifying value to banner or remove has resolved the problem. Qt works fine :)

          Sorry and thanks for listen.

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Glad you found out and thanks for sharing !

            Just to be sure, was it a value you modfied yourself in your Info.plist file ?

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

            R 1 Reply Last reply
            0
            • SGaistS SGaist

              Glad you found out and thanks for sharing !

              Just to be sure, was it a value you modfied yourself in your Info.plist file ?

              R Offline
              R Offline
              roundcubes
              wrote on last edited by
              #6

              @SGaist Yes, I had taken some values for plist.info from an old XCode project. If you sign the Applicationbundle, this value will be active, otherwise not.

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                Good to know, thanks !

                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
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved