This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
See Bug 207131 - *.qrc files are ignored when adding to the project Adding *.qrc files were added, but now I downloaded 7.1.1 opened some ready made working project, removed files and added them again, made clean build and run. No resources are loaded. Let's say we have app.qrc file with about.png inside, ok? We do something like log() << QPixmap(":/app/about.png").size(); and get QSize(0,0), which means no resouces are loaded. I rolled back to 7.0.1 where everything is ok.
I don't think it is a P2. Strange scenario. P4 (or P3) I think.
> I don't think it is a P2. Strange scenario. P4 (or P3) I think. As you wish sir, but this bug makes Netbeans impossible to develop QT applications anymore. This bug is about complete feature lost. Great feature lost!
Do you speak about "user can't add a removed file without restart" case?
> Do you speak about "user can't add a removed file without restart" case? No. The problem is that everything is added ok, I see every *.qrc file. Project is built with no errors and run ok. But there are no images and other resourses in the final application (*.exe). Maybe *.qrc files are added to the project, but not complied, or they are compiled but thier object files *.o are not linked to the final *.exe - something like that.
I can't reproduce you problem. In my case build fails (file appears in Projects tab, but *.pro has not path to resource file). But only if I removed some file and I added this file again (but it hasn't sense I think).
Created attachment 116410 [details] Small test project for bug desciption
> I can't reproduce you problem. I created some small test project case for you. 1. Unpack, open NB IDE, open project. 2. Remove src folder. 3. Add src folder again. 4. Build project and run. If you do it in 7.1.1 you will see simple QT app with no icon and no png image. If you do exactly the same steps in 7.0.1 everything gonna be great: you will see icon and png image. PS. I suppose if you do it in 7.1.0 qrc file will not be added at all. But I don't have 7.1.0 to test, cause I deleted it long time ago.
The issue is resolved. The fix is here: http://hg.netbeans.org/cnd-main/rev/39c69b3c1cea