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 not sending messageClicked signal on Linux

QSystemTrayIcon not sending messageClicked signal on Linux

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 5 Posters 1.0k Views 1 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.
  • dporobicD Offline
    dporobicD Offline
    dporobic
    wrote on last edited by
    #1

    I'm trying to figure out why QSystemTrayIcon is not sending the messageClicked signal on Linux when I click on the balloon popup message. Same application under Windows sends the signal.

    If I read the documentation correctly it should be supported on Linux, it's only not sent on MacOS.

    I've tested openSUSE 15.0 with KDE Plasma and Ubuntu 20.04.

    Is there something else that needs to be done in order to receive those signals?

    https://github.com/ksnip/ksnip

    JonBJ 1 Reply Last reply
    1
    • dporobicD dporobic

      I'm trying to figure out why QSystemTrayIcon is not sending the messageClicked signal on Linux when I click on the balloon popup message. Same application under Windows sends the signal.

      If I read the documentation correctly it should be supported on Linux, it's only not sent on MacOS.

      I've tested openSUSE 15.0 with KDE Plasma and Ubuntu 20.04.

      Is there something else that needs to be done in order to receive those signals?

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @dporobic said in QSystemTrayIcon not sending messageClicked signal on Linux:

      QSystemTrayIcon is not sending the messageClicked signal on Linux

      Simple answer: mileage seems to vary! have a Google of QSystemTrayIcon is not sending the messageClicked signal on Linux. See for example https://stackoverflow.com/questions/43657890/pyqt5-qsystemtrayicon-activated-signal-not-working.

      dporobicD 1 Reply Last reply
      1
      • JonBJ JonB

        @dporobic said in QSystemTrayIcon not sending messageClicked signal on Linux:

        QSystemTrayIcon is not sending the messageClicked signal on Linux

        Simple answer: mileage seems to vary! have a Google of QSystemTrayIcon is not sending the messageClicked signal on Linux. See for example https://stackoverflow.com/questions/43657890/pyqt5-qsystemtrayicon-activated-signal-not-working.

        dporobicD Offline
        dporobicD Offline
        dporobic
        wrote on last edited by
        #3

        @JonB said in QSystemTrayIcon not sending messageClicked signal on Linux:

        @dporobic said in QSystemTrayIcon not sending messageClicked signal on Linux:

        QSystemTrayIcon is not sending the messageClicked signal on Linux

        Simple answer: mileage seems to vary! have a Google of QSystemTrayIcon is not sending the messageClicked signal on Linux. See for example https://stackoverflow.com/questions/43657890/pyqt5-qsystemtrayicon-activated-signal-not-working.

        I know that post and this is actually not my issue, the activate signal works perfectly fine for me, I'm having an issue with the messageClicked signal. The activate signal is sent when you click on the tray icon and the messageClicked signal is sent, well, when you click on the balloon popup message. I did google this before of course and all I was able to find is that some folks complain about not getting the signal on MacOS, which is not supported, so I wrote here.

        https://github.com/ksnip/ksnip

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

          Hi,

          You should add what version of Plasma you are using as well as desktop environment you are using on Ubuntu.

          By the way, did you test that with the Qt version provided by these distributions ?

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

          dporobicD 1 Reply Last reply
          0
          • SGaistS SGaist

            Hi,

            You should add what version of Plasma you are using as well as desktop environment you are using on Ubuntu.

            By the way, did you test that with the Qt version provided by these distributions ?

            dporobicD Offline
            dporobicD Offline
            dporobic
            wrote on last edited by
            #5

            @SGaist said in QSystemTrayIcon not sending messageClicked signal on Linux:

            You should add what version of Plasma you are using as well as desktop environment you are using on Ubuntu.

            I'm using Plasma 5.12.8 on OpenSUSE and on Ubuntu Gnome 3.36.1.

            By the way, did you test that with the Qt version provided by these distributions ?

            On my openSUSE machine yes, I'm using the one installed on the OS (Qt 5.9.4) and I'm building my application from source.

            https://github.com/ksnip/ksnip

            B 1 Reply Last reply
            1
            • dporobicD dporobic

              @SGaist said in QSystemTrayIcon not sending messageClicked signal on Linux:

              You should add what version of Plasma you are using as well as desktop environment you are using on Ubuntu.

              I'm using Plasma 5.12.8 on OpenSUSE and on Ubuntu Gnome 3.36.1.

              By the way, did you test that with the Qt version provided by these distributions ?

              On my openSUSE machine yes, I'm using the one installed on the OS (Qt 5.9.4) and I'm building my application from source.

              B Offline
              B Offline
              brezniczky
              wrote on last edited by brezniczky
              #6

              I think the issue persists (Ubuntu 20.04.1, Qt 5.15.2 (via PySide2), factory defaults otherwise mostly, incl. Gnome 3.36.8).

              I suppose this is the related bug ticket, if anyone wants to join upvoting, I'd chance you're very welcome to do so :)
              QSystemTrayIcon::messageClicked not triggered when clicking on the popup message in KDE Plasma

              Oh yes, if anyone is aware of a workaround, please shout!

              W 1 Reply Last reply
              0
              • B brezniczky

                I think the issue persists (Ubuntu 20.04.1, Qt 5.15.2 (via PySide2), factory defaults otherwise mostly, incl. Gnome 3.36.8).

                I suppose this is the related bug ticket, if anyone wants to join upvoting, I'd chance you're very welcome to do so :)
                QSystemTrayIcon::messageClicked not triggered when clicking on the popup message in KDE Plasma

                Oh yes, if anyone is aware of a workaround, please shout!

                W Offline
                W Offline
                WillyJL
                wrote on last edited by
                #7

                @brezniczky said in QSystemTrayIcon not sending messageClicked signal on Linux:

                Oh yes, if anyone is aware of a workaround, please shout!

                Oddly enough I noticed that using all MessageIcon types I can select the messagebox text (and therefore messageClicked is not triggered), but only the Critical MessageIcon type allows me to click on it and trigger the signal; that's the workaround I'm using.

                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