-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
1.0.0, 1.0.1, 1.1.1
-
None
-
Linux Ubuntu 13.04 32 bits
Qt5.2 + QtCreator 3.0
I have a Qt project with QML files and PNG images, and I want to use a Qt Resource File (.qrc) for the images and I want it to be automatically constructed by QBS, to avoid adding manually each new file in the Resource Editor.
So, I added a Rule with multiplex flag to prepare a file with the list of the *.png, that I get with a wildcard Group+fileTags (tagged 'img'), but the QRC is only generated at first build if it doesn't exist. Then if I remove the QRC, it doesn't try to rebuild, and if a PNG is added or removed from project directory, neither.
How to reproduce ?
I attached a REALLY simple test project (zipped), with one C++ file and 3 PNG images, and dependency on cpp and qt modules. The first build generates a QRC with the 3 PNG in it, but after that, if we create a new png (e.g. copy&paste img3.png and rename to img4.png), the QRC is not regenerated. If we delete the QRC to force regeneration, it doesn't work. And if we remove one of the existing PNG, no regeneration...
The only way i found to regenerate is, in this order :
- close QtCreator
- remove the build directory
- remove the QRC in source directory
- relaunch QtCreator
- reopen project
- rebuild
- and it's done !