What do you mean with "my application is extensible"?
Your example code is very strange.
Qt supports application extensibility through Plugins.
IMHO You have to define the application logic in your code and let plugins-writer free to implements details.
Bookmarks