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
Forum Updated to NodeBB v4.3 + New Features

QSystemTrayIcon Message on MacOS without Buttons

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 2 Posters 2.0k Views 2 Watching
  • 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 2 Jul 2017, 12:55 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
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 2 Jul 2017, 22:06 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 3 Jul 2017, 07:10
      0
      • S SGaist
        2 Jul 2017, 22:06

        Hi,

        What was the previous version you used ?

        R Offline
        R Offline
        roundcubes
        wrote on 3 Jul 2017, 07:10 last edited by
        #3

        @SGaist Previous was 5.9.0

        1 Reply Last reply
        0
        • R Offline
          R Offline
          roundcubes
          wrote on 4 Jul 2017, 06:57 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
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 4 Jul 2017, 06:59 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 4 Jul 2017, 07:10
            0
            • S SGaist
              4 Jul 2017, 06:59

              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 4 Jul 2017, 07:10 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
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 4 Jul 2017, 07:17 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

                1/7

                2 Jul 2017, 12:55

                • Login

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