[Qt-interest] Embed pixmaps at runtime
Constantin Makshin
dinosaur-rus at users.sourceforge.net
Sun Feb 15 18:51:36 CET 2009
Qt resources are embedded right into the code of the application, so you
can't easily add Qt resources at runtime. Even if you could, it's likely
that your application won't have permissions to modify its executable file.
P.S.: And rcc has nothing to do with the application's executable. It only
generates a C++ header file with all required information about embedded
files. Final "embedding" is done by the compiler.
On Sun, 15 Feb 2009 17:49:44 +0300, Nadia Pio <nadiapio at gmail.com> wrote:
> Hello everybody,
> in my application I use some icons that are embedded into the
> application's executable through the Qt Resource System.
> At runtime the user can import from the file system other icons and
> I'd like to add them dynamically (at runtime) to the resource file and
> embed them in the application. Is there a way to do this?
> I know that I can register external binary resources, but I need to
> create the resource data before to register them; is there a way to
> run the rcc at runtime?
> Thank you.
> Nadia
--
Constantin "Dinosaur" Makshin
More information about the Qt-interest-old
mailing list