I'm using Qt from python with PySide bindings. The main part of my application is the OpenGL view that can be resized to particular value (this is a simulator for testing my game in different resolutions of mobile devices). I use QGLWidget to render graphics from my game engine and QScrollArea for scrolling.
When I try to scroll GL view nothing happens - it just stays at the same place, but coordinates of QGLWidget are updated just fine which I see through print statements.
Playing around with resizing main window I've came to conclusion that everything inside QGLWidget is snapped to the bottom-left corner of currently visible area. So this would explain why I can't see scrolling.
Am I supposed to update projection matrix manually?
It sounds like some kind of parenting issue. This works as expected: