old qt and undefined behaviour