Set hasDepthBuffer property.
If set to true the widget will allocate and enable a depth buffer for the target framebuffer.
Set hasDepthBuffer property.