QGLWidget inside a QScrollArea
I am working on a program which has a large OpenGL surface. I want to put it into a ScrollArea, so the user can pan with the scroll bars.
But I figured that when I move the slider of the scrollbar, the OpenGL surface stays. I can't move it.
Is there an example of this?
Use another approach: instead of putting it inside a QScrollArea, put it as the viewport of a QAbstractScrollArea, and then manage/use the scollbars' values and signals to scroll the OpenGL view itself?
Ok, I can try it. But why scrollArea doesn't support qglWidget?
My guess would it be because it paints on screen.