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

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.12.7
    • None
    • 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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            dporobic Damir Porobic
            Votes:
            5 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes