QIcon Search Paths Question

Christoph Cullmann cullmann at absint.com
Wed Oct 21 19:00:58 BST 2015


Hi,

I tried to set the icon search path relative to the application directory, e.g. like:

QIcon::setThemeName(QStringLiteral("breeze"));
QIcon::setThemeSearchPaths(QStringList() << QCoreApplication::applicationDirPath() + QStringLiteral("/../Resources/icons"));
  
with breeze dir inside the "icons" path with the index.theme inside.

Sometimes, that even works, sometimes, not.

Is there anything special to do? Does KIconThemes play around with that, too?

Greetings
Christoph

-- 
----------------------------- Dr.-Ing. Christoph Cullmann ---------
AbsInt Angewandte Informatik GmbH      Email: cullmann at AbsInt.com
Science Park 1                         Tel:   +49-681-38360-22
66123 Saarbrücken                      Fax:   +49-681-38360-20
GERMANY                                WWW:   http://www.AbsInt.com
--------------------------------------------------------------------
Geschäftsführung: Dr.-Ing. Christian Ferdinand
Eingetragen im Handelsregister des Amtsgerichts Saarbrücken, HRB 11234




More information about the kde-core-devel mailing list