Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

void QGLFormat::setAlpha ( bool  enable  ) 

If enable is true enables the alpha buffer; otherwise disables the alpha buffer.

The alpha buffer is disabled by default.

The alpha buffer is typically used for implementing transparency or translucency. The A in RGBA specifies the transparency of a pixel.

See also:
alpha(), setAlphaBufferSize()

Definition at line 463 of file qgl.cpp.

References setOption().

    setOption(enable ? QGL::AlphaChannel : QGL::NoAlphaChannel);

Generated by  Doxygen 1.6.0   Back to index