Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

How to get system icon by file extension



  • QIconProvider can't load icon when file is not exist, I want to get system icon by file extension.



  • You sure can (on Windows, anyway), but it is up to you to do it. It will take some windows 32 API and/or registry reading to get to the right image, but it is certainly doable.


Log in to reply