How to create a Qt Creator plugin in C++, a working example explained