国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 學(xué)院 > 開(kāi)發(fā)設(shè)計(jì) > 正文

Qt5.7設(shè)置應(yīng)用程序圖標(biāo)-基于Windows

2019-11-10 22:26:56
字體:
來(lái)源:轉(zhuǎn)載
供稿:網(wǎng)友
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, assuming you are using qmake to generate your makefiles, you only need to add a single line to your .PRo project file:  RC_ICONS = myappico.icoFinally, 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.rcIf 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. 
發(fā)表評(píng)論 共有條評(píng)論
用戶(hù)名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 西乌| 久治县| 阿城市| 康保县| 兴文县| 岳阳县| 怀集县| 平顶山市| 库车县| 临颍县| 大同县| 柳河县| 建湖县| 高淳县| 射洪县| 峨眉山市| 绵竹市| 龙游县| 宾川县| 五常市| 浮梁县| 昭通市| 汽车| 安福县| 托克逊县| 东安县| 同仁县| 丁青县| 长岛县| 蕲春县| 洪泽县| 麻栗坡县| 阳谷县| 哈尔滨市| 蓬莱市| 阜康市| 营山县| 利川市| 连平县| 天峨县| 双桥区|