This is a C++ issue, not a Qt one. Moving to general programming.