Some code examples for Qt and C++