Obsolete Members for QGLContext

以下成员源于类 QGLContext 已过时。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。

公共函数

(obsolete) QGLContext (const QGLFormat & format , QPaintDevice * device )

成员函数文档编制

QGLContext:: QGLContext (const QGLFormat & format , QPaintDevice * device )

Constructs an OpenGL context for the given paint device , which can be a widget or a pixmap. The format specifies several display options for the context.

If the underlying OpenGL/Window system cannot satisfy all the features requested in format , the nearest subset of features will be used. After creation, the format () method will return the actual format obtained.

Note that after a QGLContext object has been constructed, create () must be called explicitly to create the actual OpenGL context. The context will be invalid if it was not possible to obtain a GL context at all.