在.pro文件中添加 RC_ICONS = icon.ico QT += core gui RC_ICONS = icon.ico icon.ico文件放在工程下 转载于:https://www.cnblogs.com/smh2015/p/11227550.html