"It's automatic when you load the plugin." I assume it would if you compile in the resources with the plugin library altogether into the same binary it would be that way?
http://doc.qt.io/qt-5/resources.html#compiled-in-resources We don't use .pro file, we are inside Visual Studio. How do you generate the qrc_application.cpp or any equivalent outside of .pro file? Any command line that generate this? we probably could integrate that command inside MSBuild. That would make the plugin and it's resources altogether. Or use Keith suggestion to load the .rcc file associated to the plugin when the plugin register. I was mostly looking into the *rcc -binary* and load only wanted resources with *QResource::registerResource()*. Sorry I was not clear about the release, it wasn't meant to be about freeing the resource memory but more on the deploy the Qml to have dynamic part (multiple .rcc files for different application part) to it with the resources binary. I want to load an .rcc only if needed, cause we have many modules/plugins and not all of them are used for a particular main script. On Mon, Jun 29, 2015 at 5:11 PM, Thiago Macieira <thiago.macie...@intel.com> wrote: > On Monday 29 June 2015 16:09:05 Jérôme Godbout wrote: > > Hi, > > I'm looking for a way to load a specific resources files (.rcc) when a > > modules or a plugins is used. > > It's automatic when you load the plugin. > > > Anybody have a better way to release resources/modules/plugins? > > Don't unload plugins. The rcc output does try to unregister the resources, > but > it's usually a bad idea as pointers to data loaded from plugins are abound. > > -- > Thiago Macieira - thiago.macieira (AT) intel.com > Software Architect - Intel Open Source Technology Center > > _______________________________________________ > Interest mailing list > Interest@qt-project.org > http://lists.qt-project.org/mailman/listinfo/interest >
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest