• 8152阅读
  • 9回复

linux下qt发布程序,如何使得它具有图标? [复制链接]

上一主题 下一主题
离线conta
 
只看楼主 倒序阅读 楼主  发表于: 2010-10-25
— 本帖被 XChinux 从 General Qt Programming 移动到本区(2010-10-26) —
如题,程序发布后,很难看,想加个图标给它。
离线dbzhang800

只看该作者 1楼 发表于: 2010-10-25
离线conta
只看该作者 2楼 发表于: 2010-10-26
引用第1楼dbzhang800于2010-10-25 22:34发表的  :
http://hi.baidu.com/cyclone/blog/item/0a7c95cafc30c08bc817680c.html



thank you, 研究中。。。
离线cahwxy

只看该作者 3楼 发表于: 2010-10-26
呵呵,让人家去google 去

在 pro 文件加上 ICON = filename ;就可以的
离线conta
只看该作者 4楼 发表于: 2010-10-26
找到了一种方法:


创建一个文档,内容为:
[Desktop Entry]
Comment=An Example Program    
Exec=/root/bridge.sh                        #你的应用程序路径 我的在bin下面
Icon=/root/bridge.png                     #图片的路径                                  
Type=Application
Name=bridge                                  #连接名字
离线conta
只看该作者 5楼 发表于: 2010-10-26
引用第3楼cahwxy于2010-10-26 14:30发表的  :
呵呵,让人家去google 去
在 pro 文件加上 ICON = filename ;就可以的  



这个行吗?
pro文件里
ICON  没有这个项的吧?
离线conta
只看该作者 6楼 发表于: 2010-10-26
根据下面,你的这种方法是在 Symbian平台的发方法,不是linux平台的发方法啊。


Setting the Application Icon on the Symbian platform

In order to set the application icon for Symbian platform applications, you need an SVG-T icon. For information on how to create SVG-T compliant icons, please refer to http://wiki.forum.nokia.com/index.php/How_to_create_application_icon(SVG)_in_S60_3rd_edition/

Once the icon is available in the correct format and assuming you are using qmake to generate your makefiles, you only need to add a single line to your .pro project file. For example, if the name of your icon file is myapp.svg, and your project file is myapp.pro, add this line to myapp.pro:

ICON = myapp.svg
离线toby520

只看该作者 7楼 发表于: 2013-05-03
引用第4楼conta于2010-10-26 14:59发表的  :
找到了一种方法:
创建一个文档,内容为:
[Desktop Entry]
.......

   楼上所说的这个文档是rc文件么?目前没有找到方法
QtQML多多指教开发社区 http://qtclub.heilqt.com
将QtCoding进行到底
关注移动互联网,关注金融
开发跨平台客户端,服务于金融行业
专业定制界面
群号:312125701   373955953(qml控件定做)
离线笨笨小孩

只看该作者 8楼 发表于: 2013-05-04
看来这个工具还有待完善啊!!!
你一定要努力哦!!!
离线ninsun

只看该作者 9楼 发表于: 2013-05-05
linux下的程序图标本来就是和桌面环境相关的吧……
不同桌面环境加图标的方法可能类似,但是不统一吧……
快速回复
限100 字节
 
上一个 下一个