3

Qt supports the icon theme lookup by returning a QIcon. But for my QML view I need the icon path instead of a QIcon. Is there a way to get either the path from the looked up icon or to do a lookup which returns the icon path? I.e. I want to put an icon name according to the Icon Naming Specification into a function which returns a path to an image file.

If this is not possible with Qt, what is the next best option? Is there a library out there for the icon look up as specified in the Freedesktop Icon Theme Sspecification?

ManuelSchneid3r
  • 15,850
  • 12
  • 65
  • 103

0 Answers0