Svg icons in systray are not rendered at all for qt apps ( png, jpeg and other work fine fine). There is a empty spot where the icon is suppose to be. Reproducible: Always Steps to Reproduce: Run any qt app (non kde) that loads a svg icon as system tray icon. You can test it with Qt's example project - systray ( just add svg icon to the resource file and add it to list of at window.cpp:190 ) Actual Results: Icons is not rendered. Expected Results: Icon should be rendered. On other DE svg icons are renedered ( tested with ubuntu, opensuse with xfce )
Reproduced here. The icon shows up in the menu editor but in the menu itself.
Sorry meant to say it shows up in the menu editor but NOT in the menu itself.
Created attachment 100442 [details] Screenshot of menu issue Sorry I misread the bug title but the the issue could be related. The screenshot shows the missing icon when you try to set an SVG image as a menu icon.
menu or systemtray?
for me its systemtray
svgs from resource files are not rendered for me
ok i can confirm also Alexes problem. svgs are not rendered correctly in menu.
I can confirm that one, too, at least for the menu. I'm on Plasma 5.8 now but, unfortunately I cannot remember, when this started.
With Plasma 5.9 SVG icons are still not shown in the menu. Anything I can do to help in investigating this?
> You can test it with Qt's example project - systray ( just add svg icon to the resource file and add it to list of at window.cpp:190 ) Attach a diff of that please. If you've done the work, make our lives easier. Also can you see if it's still the case if our QPT is not loaded? (unset KDE_FULL_SESSION and XDG_CURRENT_DESKTOP)
I just manually created an entry in the menu, added a svg icon and additionally added that entry to the control bar. Here is a screenshot showing that the icon is rendered in the menu editor and the control bar but, not in the menu: http://i.imgur.com/L700Ixm.png Afterwards I made the proposed changes to window.cpp and added a svg file. The screenshot shows, that the icon is also not rendered in systray: http://i.imgur.com/qY97jmz.png Just to check that the original icons of the QT systray example work: http://i.imgur.com/LOyUAnJ.png
Patch for application launcher: https://phabricator.kde.org/D5109 I bet the systray bug is a similar issue in another place.
I found another occurence of SVG icons not rendering: in the places bar of Dolphin. http://imgur.com/28iYD9C Should I open a new bug for that or can this be tracked in this one?
SVG icons not working in Dolphin is being tracked with https://bugs.kde.org/show_bug.cgi?id=368951 Let's keep this bug for tracking the original issue.
It turns out that this is caused by a Qt bug: https://bugreports.qt.io/browse/QTBUG-63187 We investigated working around this ourselves, but that caused other issues. We'll have to wait for or drive a Qt fix. Thanks for understanding, everyone!