如何在Symbian上的QT中设置应用程序图标?

发布于 2024-09-08 09:58:55 字数 255 浏览 3 评论 0原文

如何在 Symbian 上的 QT 中设置应用程序图标?我在这里阅读 http://doc.qt.nokia.com/4.6/appicon.html 想要设置它,但它对我不起作用。我创建了 SVG-Tiny 图标(文件)并在 pro 文件中写入 ICON = Resource/ico.svg 。怎么了?

提前致谢

How can I set an app icon in QT on Symbian? I read here http://doc.qt.nokia.com/4.6/appicon.html about hot to set it but it doesn't work for me. I created SVG-Tiny icon(file) and wrote ICON = Resource/ico.svg in the pro file. What is wrong?

Thanks in advance

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

記柔刀 2024-09-15 09:58:55

应该可以做到这一点。对我有用。要检查的事项:

  • 编辑 .pro 文件后是否运行了 qmake 并重建了项目?
  • 在模拟器环境下,是否重启过模拟器?

  • 检查您的 PKG 文件是否具有将 yourapp.rsc 和 yourapp.mif 安装到目标上的 \resource\apps 的规则

That should do it. Works for me. Things to check:

  • Have you run qmake and rebuilt the project after editing the .pro file?
  • In emulator environment, have you restarted the emulator?

  • Check that your PKG file has rules to install both yourapp.rsc and yourapp.mif to \resource\apps on target
止于盛夏 2024-09-15 09:58:55

您需要在 .pro 文件中提供图标的路径,如下所示

ICON = Resource\ico.svg 

我希望它有所帮助。

you need to give the path of icon in your .pro file like this

ICON = Resource\ico.svg 

i hope it helps.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文