C++ Qt code