The RunOpenGL function is owned by 4 classes inherited from a same parent class. Some RunOpenGL functions have Qt drawing codes, some have only OpenGL codes.

The RunOpenGL is a virtual function, some classes need qt drawing codes.