Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions |

# QGL Class Reference

The QGL class is a namespace for miscellaneous identifiers in the Qt OpenGL module. More...

    #include <QGL>

Inherited by QGLFormat, QGLContext, and QGLWidget.

- List of all members, including inherited members

### Public Types

- enum FormatOption { DoubleBuffer, DepthBuffer, Rgba, AlphaChannel, AccumBuffer, ..., NoOverlay }

## Detailed Description

The QGL class is a namespace for miscellaneous identifiers in the Qt OpenGL module.

Normally you can ignore this class. QGLWidget and the other OpenGL module classes inherit it, so when you make your own QGLWidget subclass you can use the identifiers in the QGL namespace without qualification.

However, you may occasionally find yourself in situations where you need to refer to these identifiers from outside the QGL namespace's scope, e.g. in static functions. In such cases, simply write e.g. `QGL::DoubleBuffer` instead of just `DoubleBuffer`.

## Member Type Documentation

### enum QGL::FormatOption

This enum specifies the format options.

`QGL::DoubleBuffer` |
`QGL::DepthBuffer` |
`QGL::Rgba` |
`QGL::AlphaChannel` |
`QGL::AccumBuffer` |
`QGL::StencilBuffer` |
`QGL::StereoBuffers` |
`QGL::DirectRendering` |
`QGL::HasOverlay` |
`QGL::SingleBuffer` |
`QGL::NoDepthBuffer` |
`QGL::ColorIndex` |
`QGL::NoAlphaChannel` |
`QGL::NoAccumBuffer` |
`QGL::NoStencilBuffer` |
`QGL::NoStereoBuffers` |
`QGL::IndirectRendering` |
`QGL::NoOverlay` |