WaterMoon

  • technology
  • essay
  • English
    • 简体中文
  1. Home
  2. technology
  3. This article

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'

Tags: qt
2021-08-09 994Browse 3Like 2Comments

勇往直前

The man who focus on technology edited

Reward Like
Next >

Comments

  • 水月大侠

    good essay

    2021-08-09
    Reply
  • mia

    so easy

    2021-08-13
    Reply
  • Cancel reply
    Newest Hotspots
    Newest Hotspots
    windows office激活 vlmcsd搭建 使用qBreakpad跟踪程序异常退出 FFT一种C代码实现 Tiff图像直方图均衡化以及规定化算法 Linux问题 Debian: cannot find -lGL

    COPYRIGHT © 2021 WaterMoon. ALL RIGHTS RESERVED.