This example create a dock widget, that can also be opened with a toolbar button. It also demostrate how to use an external library in a plugin
Exemple displaying ZeroMQ version with a custom dock widget :