Qt应用程序的图标
来源:互联网 发布:手机淘宝5.7 编辑:程序博客网 时间:2024/05/20 06:57
程序设计完成了,如何修改exe文件的图标呢,总不能用默认的白板吧,搜来搜去,终于在Qt助手中搜到答案了,粘贴到这里备忘。
Setting the Application Icon on Windows
First, create an ICO format bitmap file that contains the icon image. This can be done with e.g. Microsoft Visual C++: Select File|New, then select the File tab in the dialog that appears, and choose Icon. (Note that you do not need to load your application into Visual C++; here we are only using the icon editor.)
Store the ICO file in your application's source code directory, for example, with the name myappico.ico. Then, create a text file called, say, myapp.rc in which you put a single line of text:
IDI_ICON1 ICON DISCARDABLE "myappico.ico"
Finally, assuming you are using qmake to generate your makefiles, add this line to your myapp.pro file:
RC_FILE = myapp.rc
Regenerate your makefile and your application. The .exe file will now be represented with your icon in Explorer.
If you do not use qmake, the necessary steps are: first, run the rc program on the .rc file, then link your application with the resulting .res file.
- Qt应用程序的图标
- Qt应用程序的图标
- QT应用程序图标的设置
- QT应用程序图标的定义
- QT更改应用程序的图标
- 为QT生成的应用程序加图标
- 为Qt的 应用程序添加Icon图标
- Qt中更改应用程序的图标
- Qt应用程序图标的个性化设置
- QT如何设置应用程序的图标
- 更改Qt应用程序图标的方法
- 怎样设置Qt生成的应用程序图标
- 设置Qt应用程序图标
- 设置Qt应用程序图标
- 设置Qt应用程序图标
- 设置Qt应用程序图标
- 设置Qt应用程序图标
- 设置Qt应用程序图标
- Javascript中最常用的55个经典技巧
- WebConfigurationManager 使用技巧
- 升级复制数据库 2000到2005
- 25个PHP游戏编程脚本代码
- 在UpdatePanel中使用验证控件 (asp.net C#)
- Qt应用程序的图标
- Asterisk Summary - 2
- 12种健康杀手,全是咱们常见的食品啊!
- 在servlet中如何获取application实例
- Android G1刷机攻略
- [转] 全套汽车标志,好不容易找到的哦!
- vector、list、deque区别
- 在windows上卸载oracle 10g
- .net基础知识总结