Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-87329

QSystemTrayIcon::messageClicked not triggered when clicking on the popup message in KDE Plasma

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.12.7
    • Fix Version/s: None
    • Labels:
      None
    • Platform/s:
      Linux/X11

      Description

      OS: openSUSE Leap 15.2
      DE: KDE Plasma x11

      After showing a popup message via

      QSystemTrayIcon::showMessage(title, message, messageIcon);
      

      a popup message shows up with the correct icon and text but clicking on the popup message doesn't send the messageClicked signal. 

      The slot is connected like this to the signal:

      connect(this, &QSystemTrayIcon::messageClicked, this, &TrayIcon::openContentUrl);
      

      And this is the slot:

      private slots:
         void openContentUrl();
      
      void TrayIcon::openContentUrl() 
      { 
          if(!mToastContentUrl.isEmpty() && !mToastContentUrl.isNull()) { 
              QDesktopServices::openUrl(mToastContentUrl); 
          } 
      }
      

      On windows this functionality seems to be working. 

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            dporobic Damir Porobic
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes