Dynamic creation of XMLGuiClients (plugins)

Andreas Zehender zehender at kde.org
Sat Jan 4 19:54:13 GMT 2003


I want to dynamical activate and deactivate plugins at runtime. If a plugin is 
loaded at program start, the menu items are created. If the plugin is loaded 
later at runtime, the plugins menu items are not created.

I load the plugins with the KParts::Plugin::loadPlugins( QObject*, 
KXMLGUIClient*, KInstance*, bool ) method, the parent object and parent xml 
gui client is a KParts::Part.

What is the most efficient way to trigger an update of the xml gui when a 
XMLGuiClient is added?

I need merging with the DefineGroup tag for the plugins actions. Does merging 
work at runtime?


PS: With KDE 3.1, not HEAD
 Andreas Zehender, Dipl. Ing. (BA)
 Student, 10th semester computer science
 az at azweb.de | zehender at kde.org      

More information about the kde-core-devel mailing list