qt5base-lts/examples/widgets/painting
Laszlo Agocs d4548751b7 Fix OpenGL mode in examples like composition
To avoid an incorrect offset for the native window, call create()
after createWindowContainer().

The mysterious -1 for the width and height are removed as well because
otherwise the GL window's size is clearly off by one.

Fixes: QTBUG-82195
Pick-to: 5.15
Change-Id: I1a9cec62746fc110bfc4cd2e4fa111f621124638
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
2020-06-09 11:29:01 +00:00
..
affine Merge remote-tracking branch 'origin/5.15' into dev 2020-03-04 14:39:18 +00:00
basicdrawing Doc: Use nullptr instead of 0 in example 2020-05-11 11:48:57 +02:00
composition Regenerate examples 2020-02-04 18:50:39 +00:00
concentriccircles Merge remote-tracking branch 'origin/5.15' into dev 2020-03-04 14:39:18 +00:00
deform Phase 2 of removing QDesktopWidget 2020-06-08 20:29:49 +02:00
fontsampler Merge remote-tracking branch 'origin/5.15' into dev 2020-03-04 14:39:18 +00:00
gradients Merge remote-tracking branch 'origin/5.15' into dev 2020-03-04 14:39:18 +00:00
imagecomposition Merge "Merge remote-tracking branch 'origin/wip/cmake' into dev" 2020-02-11 10:19:42 +01:00
painterpaths Merge "Merge remote-tracking branch 'origin/wip/cmake' into dev" 2020-02-11 10:19:42 +01:00
pathstroke Replace calls to deprecated QEvent accessor functions 2020-06-08 19:11:51 +02:00
shared Fix OpenGL mode in examples like composition 2020-06-09 11:29:01 +00:00
transformations Merge "Merge remote-tracking branch 'origin/wip/cmake' into dev" 2020-02-11 10:19:42 +01:00
.prev_CMakeLists.txt CMake: Regenerate examples/widgets/ projects 2020-04-29 22:48:38 +02:00
CMakeLists.txt CMake: Regenerate examples/widgets/ projects 2020-04-29 22:48:38 +02:00
painting.pro don't build shared demo library which is not used anyway 2013-01-31 15:51:09 +01:00
README Moving .qdoc files under examples/widgets/doc 2012-08-20 12:20:55 +02:00

Qt's painting system is able to render vector graphics, images, and outline
font-based text with sub-pixel accuracy accuracy using anti-aliasing to
improve rendering quality.

These examples show the most common techniques that are used when painting
with Qt, from basic concepts such as drawing simple primitives to the use of
transformations.


Documentation for these examples can be found via the Examples
link in the main Qt documentation.