Qt5.7设置应用程序图标-基于Windows
来源:互联网 发布:有赞源码下载 编辑:程序博客网 时间:2024/05/20 21:18
Setting the Application Icon on Windows
RC_ICONS = myappico.ico
Finally, regenerate your makefile and your application. The .exe file will now be represented by your icon in Explorer.
However, if you already have an .rc file, for example, with the name myapp.rc, which you want to reuse, the following two steps will be required. First, put a single line of text to the myapp.rc file:
IDI_ICON1 ICON DISCARDABLE "myappico.ico"
Then, add this line to your myapp.pro file:
RC_FILE = myapp.rc
If you do not use qmake, the necessary steps are: first, create an .rc file and run the rc or windres program on the .rc file, then link your application with the resulting .res file.
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.
RC_ICONS = myappico.ico
Finally, regenerate your makefile and your application. The .exe file will now be represented by your icon in Explorer.
However, if you already have an .rc file, for example, with the name myapp.rc, which you want to reuse, the following two steps will be required. First, put a single line of text to the myapp.rc file:
IDI_ICON1 ICON DISCARDABLE "myappico.ico"
Then, add this line to your myapp.pro file:
RC_FILE = myapp.rc
If you do not use qmake, the necessary steps are: first, create an .rc file and run the rc or windres program on the .rc file, then link your application with the resulting .res file.
0 0
- Qt5.7设置应用程序图标-基于Windows
- Qt5设置应用程序图标
- QT5.4设置应用程序图标
- QT5.5应用程序图标、exe图标设置
- QT5.2 Assistant-设置应用程序图标
- 在QT5中设置应用程序图标
- QT5.2 Assistant-设置应用程序图标
- Qt5设置应用程序图标和发布程序
- Qt5更改应用程序图标
- Qt5设置应用程序图标及程序的发布
- Qt5设置应用程序图标及程序的发布
- 设置Windows应用程序图标方法笔记
- windows下设置Qt应用程序图标
- Qt设置应用程序图标(Windows平台)
- 关于Qt5.7生成应用程序图标的操作
- OpenCV3.2+Qt5.8.0+Win10开发视频监控系统----(1)Qt之设置应用程序图标
- Qt4怎样设置应用程序的图标-windows平台
- Qt4怎样设置应用程序的图标-windows平台
- AngulerJS学习(二) 依赖注入
- Android中自定义属性
- Android Loadable Module Signing
- java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
- C# WebService需要注意的问题
- Qt5.7设置应用程序图标-基于Windows
- 创建javaScript自定义对象,并给属性赋值
- Android 点击EditText文本框之外任何地方隐藏键盘
- java如何正确停止一个线程
- 【plsql-dev】PL/SQL 报错: A query with LOB's requires OCI8 mode, but OCI7 mode is used
- 阅读深入解析Android RIL笔记1 —Android RIL框架结构及RILJ运行机制
- 简单介绍WebView的使用
- 例题 3.13
- Java 中的枚举 (enum)