[Development] Mac/Win: Let QIcon::fromTheme(<mimetype>) return something appropriate even when no theme is defined?
René J.V. Bertin
rjvbertin at gmail.com
Fri Feb 9 11:17:19 CET 2018
Freedesktop.org icon themes contain icons with mime-type names that are accessible via QIcon::fromTheme() and widely used to use an appropriate image for document icons.
On Mac, using setWindowFilePath() will also show an appropriate icon next to the document filename, and I presume MS Windows must have a similar functionality.
Would it be feasible in QIcon::fromTheme() to retrieve and return those icons when the icon name is a mime-type, on Mac and/or MS Windows, when no theme is defined?
More information about the Development