PDA

View Full Version : suggestion for qrc file



Lele
5th October 2006, 11:53
Hi all,
I'd like to know your opinion on qrc files and static linking resource, is it good to have only one qrc for all the reources or is better to split in many qrc(if possible).
I mean, now I have a generated qrc_application.cpp around 5Mb, I'm afraid having large could reduce performances or may result in some problems in the Visual Studio with so large cpp.
thanks for any help
Bye

wysota
5th October 2006, 13:13
It's up to you to decide how to split your resources. If MSVC has trouble operating on large files, you obviously have to split it into smaller ones. On the other hand there is no advantage of splitting resources into smaller chunks if they end up in the same binary. It would only make sense if you wanted some of the data be available in one binary (be it an executable or a shared object) and the rest in the other/both.

Brandybuck
5th October 2006, 22:23
I had G++ "thrash" on me with a 10Mb resource C++ file. It's not a problem to have multiple resource files.