<div dir="ltr">Hello,<div><br></div><div>KStars has problems loading custom icons that were installed into the "hicolor" theme under Windows. On Linux, it works perfectly fine. Upon checking QIcon::themeSearchPaths(), turns out on LInux it's the following:</div><div><br></div><div>Theme search path  ("/usr/share/icons", "/usr/share/pixmaps", ":/icons")</div><div><br></div><div>But on Windows, it's only ":/icons"</div><div><br></div><div>I solved by adding the theme names manually under Windows:</div><br>QStringList searchPaths = QIcon::themeSearchPaths();<br>foreach(QString path, QStandardPaths::standardLocations(QStandardPaths::GenericDataLocation))<br>        searchPaths << QString("%1/%2").arg(path).arg("icons");<br>QIcon::setThemeSearchPaths(searchPaths);<br><br>After that, the icons under "hicolor" loaded up fine. Perhaps Qt should be patched to add those paths so that all KDE applications can access them without the above hack?<div><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Best Regards,<br>Jasem Mutlaq<br></div><div><br></div></div></div>
</div></div>