QGLWidget inside a QScrollArea



  • Hello guys,

    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?

    Thank you.



  • 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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.