Little pieces of general-purpose C++/Qt code