diff options
| author | Laszlo Agocs <[email protected]> | 2015-06-01 11:44:37 +0200 |
|---|---|---|
| committer | Laszlo Agocs <[email protected]> | 2015-06-01 13:38:14 +0000 |
| commit | 78e335408303380310dd59fab421e495cf517ead (patch) | |
| tree | 2c76bdaccd566792a23e766569043fc2800b2c2c /examples/opengl/qopenglwidget/mainwindow.h | |
| parent | 069be1654359ab93f89d339775795508d106153a (diff) | |
Clip QOpenGLWidget and QQuickWidget correctly
Introduce support for the widgets' clipRect(). Right now render-to-texture widgets
in scroll areas placed close to each other result in broken (non-existent) clipping.
Similarly, stack-on-top widgets fail to clip when placed inside a scroll area.
This is now corrected and the qopenglwidget example is enhanced to utilize a scroll
area.
Task-number: QTBUG-45860
Change-Id: I859a63d61a50d64ba9e87244f83c5969dce12337
Reviewed-by: Jørgen Lind <[email protected]>
Diffstat (limited to 'examples/opengl/qopenglwidget/mainwindow.h')
| -rw-r--r-- | examples/opengl/qopenglwidget/mainwindow.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/opengl/qopenglwidget/mainwindow.h b/examples/opengl/qopenglwidget/mainwindow.h index f1b2c51e53f..9ad8a013392 100644 --- a/examples/opengl/qopenglwidget/mainwindow.h +++ b/examples/opengl/qopenglwidget/mainwindow.h @@ -56,6 +56,8 @@ public: void addNew(); bool timerEnabled() const { return m_timer->isActive(); } + void resizeEvent(QResizeEvent *); + private slots: void updateIntervalChanged(int value); void timerUsageChanged(bool enabled); |
