qt5base-lts/examples/gui/rasterwindow
Tor Arne Vestbø 9c17b8adb9 Update rasterwindow example to not render in resizeEvent
The resize event should not be used to draw, as there will be a follow-up
exposeEvent delivered just after, and we don't want to draw twice.

This is how QRasterWindow operates too, except it defers the backingstore
resize to beginPaint() instead of resizing in the reizeEvent.

It's also how QOpenGLWindow operates, which also has a note for the
virtual resizeGL method saying: "Scheduling updates from here is not
necessary. The windowing systems will send expose events that trigger
an update automatically."

Change-Id: I2a9740018508c2eb129149f53237ee8e378c03b1
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
2018-03-20 16:00:31 +00:00
..
main.cpp Unify license header usage. 2016-03-29 10:20:03 +00:00
rasterwindow.cpp Update rasterwindow example to not render in resizeEvent 2018-03-20 16:00:31 +00:00
rasterwindow.h Modernize rasterwindow/openglwindow examples to use requestUpdate() 2016-09-22 16:45:15 +00:00
rasterwindow.pri Analog clock and raster window examples 2012-07-13 09:55:18 +02:00
rasterwindow.pro Fixed installation of gui examples' targets 2012-12-10 15:31:06 +01:00