Qt 改变快捷方法的图标的方法
来源:互联网 发布:元数据系统作用 编辑:程序博客网 时间:2024/06/06 02:58
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: Finally, assuming you are using qmake to generate your makefiles, add this line to your myapp.pro file: 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 .resfile. 这是原文 首先在vc++里鼓捣个icon格式的图标出来,我是在网上下的icon,呵呵 然后把这个图标放在源码根目录下,创建一个txt文件,名字叫做myappico.rc在内容里加入这么一行 最后如果你qmake过了,就在你的.pro文件里加入一行,像这样 然后编译、连接 就搞定了Setting the Application Icon on Windows
IDI_ICON1 ICON DISCARDABLE "myappico.ico"
RC_FILE = myapp.rc
IDI_ICON1 ICON DISCARDABLE "myappico.ico"
RC_FILE = myapp.rc
- Qt 改变快捷方法的图标的方法
- android改变应用程序图标的方法
- 改变exe文件图标的方法
- 去除Vista快捷图标小箭头的最完美方法
- 图标卸载法,快捷卸载安卓软件的方法
- 更改Qt应用程序图标的方法
- Qt Creator 中的添加“注释段落”的快捷方法
- Qt Creator 中的段落 注释的 快捷方法
- xp系统如何改变图标大小?改变图标大小的方法(注册表)
- Flex两种改变树结点图标的方法
- 动态改变窗口图标的方法 WM_SETICON消息
- 快捷运行程序的方法
- thinkphp的几个快捷方法
- 判断质数的快捷方法
- java常用的快捷方法!
- thinkphp的几个快捷方法
- vs2010生成的qt程序修改图标的方法
- 改变Web页面上元素外观的最快捷的方法是添加style属性
- struts2中的ognl小问题
- [转]C++异常处理 2
- [转]C++异常处理 3
- [转]C++异常处理 4
- 再次回到Csdn这个大家庭
- Qt 改变快捷方法的图标的方法
- [转]C++异常处理 5
- Java与模式 命令模式 Command Pattern
- [转]C++异常处理 6
- 用Ant编译Java Web程序
- oracle中的存储过程案例
- [转]C++异常处理 7
- 跨服务器查询
- MSDN DLL 综合