"qt creator - how to set application icon for ubuntu linux?" Code Answer


linux does not have any standard for reading embedded resources, so there is no way to embed the icon in the application binary itself and have it display in the menu and launcher. you will have to install your icon in the appropriate pixmaps directory and a .desktop file in appropriate apps directory pointing to your application and respective icon.

the qt documentation you quoted refers to icon theme specification, which describes where the files should be installed. look for the installing application icons towards the end for summary of what needs to be done.

you will have to install the files in the "install" target of your build system (qmake or cmake or what you use) and possibly create a debian package on top of that. the qt creator is unlikely to help you with these.

By Yury Kudryashov on September 28 2022

Answers related to “qt creator - how to set application icon for ubuntu linux?”

Only authorized users can answer the Search term. Please sign in first, or register a free account.