How to get the current system icon theme programmatically?

I’d like to create some example code that gets the current KDE icon theme and then uses that to display an icon, but I’m not sure where to even find the kcm_icons code that does so, much less understand it.

Thanks for any assistance.

You can use QIcon::getName() to do this, assuming you have some way to use Qt.

1 Like