Qt:程序桌面图标生成
来源:互联网 发布:飞凡软件 编辑:程序博客网 时间:2024/05/22 03:01
Setting the Application Icon
The application icon, typically displayed in the top-left corner of an application's top-level windows, is set by calling theQWidget::setWindowIcon() method on top-level widgets.
In order to change the icon of the executable application file itself, as it is presented on the desktop (i.e., prior to application execution), it is necessary to employ another, platform-dependent technique.
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++: SelectFile|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 .res file.
- Qt:程序桌面图标生成
- 为Qt程序添加桌面图标
- QT设置程序的桌面图标
- 给Qt程序加一个window桌面图标
- 为Qt程序配上漂亮的桌面图标
- 为Qt程序配上漂亮的桌面图标
- QT-程序生成详细信息
- Qt 添加桌面图标
- Linux生成桌面图标
- Android 生成桌面图标
- Qt 如何生成可执行程序
- Qt打包生成exe程序
- Qt生成可执行程序图标
- qt creator程序生成dump
- Qt设置桌面图标的方法
- KDE环境下生成桌面图标
- 使用qmake 单独生成Qt程序
- QT实现简单滚动随机数生成程序
- C# TabControl控件,隐藏选项卡
- Jmeter之Bean shell使用
- Spring4.2+springmvc4.2+hibernate4.2整合
- 利用OpenCV的convexHull和convexityDefects做凸包(凸壳)检测及凸包(凸壳)的缺陷检测
- Nginx 的启动、停止、平滑重启、信号控制和平滑升级
- Qt:程序桌面图标生成
- U-boot主Makefile分析
- Windows 任务管理器中的几个内存概念
- 通信的五层模型
- 序列化工具SerializeUtils
- DP--划分问题(掷骰子)
- JS编程小常识很有用
- BSP-Apache HAMA-Graph运行(1)
- 《AngularJs实战》笔记