setRequiredVersion

open fun setRequiredVersion(major: <Error class: unknown class>, minor: <Error class: unknown class>)

Sets the required version of OpenGL to be used when creating the context for the widget.

This function must be called before the area has been realized.

Parameters

major

the major version

minor

the minor version