The screen show below shows a window with a CP_OpenGLView displaying its content using OpenGL calls.
In order to not have to override the OpenGLView class every time to display your OpenGL content, the actual drawing is done by using a slot that is called whenever the view needs to update its content.