qt5base-lts/examples
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
..
aggregate install a sane top-level examples.pro file 2012-12-11 13:37:57 +01:00
corelib Fix some qdoc-warnings for 5.11 2018-02-21 16:10:26 +00:00
dbus Use dependencies instead of CONFIG+=ordered 2017-12-02 11:09:15 +00:00
embedded Change almost all other uses of qrand() to QRandomGenerator 2017-11-08 09:14:03 +00:00
gui Update rasterwindow example to not render in resizeEvent 2018-03-20 16:00:31 +00:00
network Merge remote-tracking branch 'origin/5.10' into dev 2018-01-20 22:36:19 +01:00
opengl Merge remote-tracking branch 'origin/5.9' into 5.11 2018-02-14 12:51:24 +01:00
qmake Unify license header usage. 2016-03-29 10:20:03 +00:00
qpa Examples: Replace 'Q_DECL_OVERRIDE' by 'override' 2016-06-15 09:32:30 +00:00
qtconcurrent qtlite: Skip building examples when configured with no-feature-itemviews 2018-01-12 07:58:20 +00:00
qtestlib Merge remote-tracking branch 'origin/5.6' into 5.7 2016-05-06 15:36:44 +02:00
sql qtlite: Skip building examples when configured with no-feature-itemviews 2018-01-12 07:58:20 +00:00
touch qtlite: Skip building examples when configured with no-feature-itemviews 2018-01-12 07:58:20 +00:00
vulkan hellovulkantexture: Fix issues with new validation layer 2017-10-16 08:15:39 +00:00
widgets Merge remote-tracking branch 'origin/5.11' into dev 2018-03-18 01:00:11 +01:00
xml Merge remote-tracking branch 'origin/5.10' into dev 2018-01-20 22:36:19 +01:00
examples.pro examples: fix compile without opengl support 2017-08-29 20:30:45 +00:00
README Remove more references to demos. 2011-07-08 15:36:26 +02:00

Qt is supplied with a number of example applications that have been
written to provide developers with examples of the Qt API in use,
highlight good programming practice, and showcase features found in each of
Qt's core technologies.


Documentation for examples can be found in the Examples section
of the Qt documentation.