bool create()
Attempts to create the OpenGL context with the current configuration.
void setScreen(QScreen *screen)
Sets the screen the OpenGL context should be valid for.
bool makeCurrent(QSurface *surface)
Makes the context current in the current thread, against the given surface.
void setFormat(const QSurfaceFormat &format)
Sets the format the OpenGL context should be compatible with.
void swapBuffers(QSurface *surface)
Swap the back and front buffers of surface.