Putting the cube example into a Qt frame