How to use a compress Resource file
-
hi,
I use rcc like this
@rcc -binary xrc.qrc -o xrc.rcc@
then
@qDebug()<< QResource::registerResource("xrc.rcc");@
it's work fine.but, when I use -compress options
@rcc -binary -threshold 0 -compress 2 xrc.qrc -o xrc2.rcc@registerResource Failed!!! return false
why? QT does not automatically extract it?
someone can give some Example for use a compress Resource file , thanks!
-
Resource files are already compressed by default. Is there a reason you need to change the default compression levels?
-
I just tested it with your command line options. Both resources are loaded without any problems.
-
sorry, sorry!!! I am so stupid
a Absurd Mistakes...
................................forget copy xrc2.rcc to Shadow build Directory &#$*!^#%!#
Really embarrassing..........
[quote author="mlong" date="1312921299"]Resource files are already compressed by default. Is there a reason you need to change the default compression levels?
[/quote]by default , Resource file are not compressed. you can use Text editor view the rcc file, Judge the resource file whether compressed.
-
[quote author="hoozi" date="1312951323"]
by default , Resource file are not compressed. you can use Text editor view the rcc file, Judge the resource file whether compressed.[/quote]