Writing tretris with qt and opengl