Set the OpenGL-capability to the @widget. This function prepares the widget for its use with OpenGL.
See Source File