A simple event example for Qt/C++