Conways Game of Life in C++ using Qt