Glitches when passing from QVTKWidget to QVTKOpenGLWidget

Setting surface format is just part of the story. Qt/VTK application initialization steps are very delicate - you need to perform all the steps and in the correct order. I would recommend to copy the steps from large projects, such as Paraview, because several developers worked very hard on getting those right and they are tested by thousands of users on various platforms.