水月博客

  • 技术
  • 随笔
  • 简体中文
    • English
  1. 首页
  2. 技术
  3. 正文

Qt资源文件无效问题

解决Qt资源文件无效问题:

如果Qt的库中有资源文件,并且和应用程序的资源文件同名,在linux下库的资源文件会找不到,windows下则没有问题。

解决方法:把库中的资源文件重新命名。

英文资料

This problem usually happen when you have two Resource file with same name!(*.qrc).
For testing create a main project and create an external library project. Create two res.qrc file with same name.
Sometimes you can not see the icons and images on forms or dialogs on the library you have attached to your project. It is rare to see as usually a little number of programmers create a dialog in their LIBS. (for example having your own MESSAGEBOX in an external LIB)
I think this is a bug which should be reported to 'qt but report site'

标签: qt
2021-08-09 346点热度 0人点赞 0条评论

勇往直前

The man who focus on technology edited

打赏 点赞
下一篇 >

文章评论

取消回复
最新 热点
最新 热点
windows office激活 vlmcsd搭建 使用qBreakpad跟踪程序异常退出 FFT一种C代码实现 Tiff图像直方图均衡化以及规定化算法 Linux问题 Debian: cannot find -lGL

COPYRIGHT © 2021 WaterMoon. ALL RIGHTS RESERVED.