/*!
Sets the window's surface \a format.
- The format determines properties such as color depth, alpha,
- depth and stencil buffer size, etc.
+ The format determines properties such as color depth, alpha, depth and
+ stencil buffer size, etc. For example, to give a window a transparent
+ background (provided that the window system supports compositing, and
+ provided that other content in the window does not make it opaque again):
+
+ \code
+ QSurfaceFormat format;
+ format.setAlphaBufferSize(8);
+ window.setFormat(format);
+ \endcode
The surface format will be resolved in the create() function. Calling
this function after create() has been called will not re-resolve the