How do you set application icon for application made using Qt? Is there some easy way? It\'s a qmake-based project.
Verified in Linux (Qt 4.8.6) and Windows (Qt 5.6):
1) Add the icon file to your project folder;
2) In the main function call setWindowIcon() method. For example:
QApplication a(argc, argv); a.setWindowIcon(QIcon("./images/icon.png"));