在qt中开启深度检测之后还是会出现后面的形状遮盖住前面的形状 解决方法: 在main函数中加入: QSurfaceFormat format; format.setDepthBufferSize(24);