C++ Qt Assignment