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.

Bug 209235 - QT resources are not compiled
Summary: QT resources are not compiled
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.1.1
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: igor_nikiforov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-06 13:08 UTC by daorus
Modified: 2012-03-21 13:01 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Small test project for bug desciption (14.27 KB, application/x-zip-compressed)
2012-03-06 18:00 UTC, daorus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description daorus 2012-03-06 13:08:00 UTC
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.
Comment 1 soldatov 2012-03-06 14:28:07 UTC
I don't think it is a P2. Strange scenario. P4 (or P3) I think.
Comment 2 daorus 2012-03-06 14:31:06 UTC
> 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!
Comment 3 soldatov 2012-03-06 14:39:48 UTC
Do you speak about "user can't add a removed file without restart" case?
Comment 4 daorus 2012-03-06 14:56:55 UTC
> 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.
Comment 5 soldatov 2012-03-06 17:05:31 UTC
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).
Comment 6 daorus 2012-03-06 18:00:40 UTC
Created attachment 116410 [details]
Small test project for bug desciption
Comment 7 daorus 2012-03-06 18:09:04 UTC
> 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.
Comment 8 igor_nikiforov 2012-03-21 13:01:44 UTC
The issue is resolved. The fix is here:
  http://hg.netbeans.org/cnd-main/rev/39c69b3c1cea