I work with Qt5 and must code something like simple 3D-editor. I need to have 4 projection-views in my main window (for different scene-projections). I saw OpenGLWindow example, but there was only one window and i don't know how to modify it for my purpose.
There are next lines in example.
class OpenGLWindow : public QWindow, protected QOpenGLFunctions
{
........
private:
QOpenGLContext *m_context;
}
As Assistant says, QOpenGLContext can draw only on QSufrace, which is direct base of QWindow.
So, how can I put several projection-views on one MainWindow.
I need tools, contained in QOpenGLFunctions.