Have you seen Qt's documentation on writing plugins? If not, I suggest you start there. There's a nice example of a simple pluggable image editor.