qt5base-lts/examples/widgets/painting
Shawn Rutledge 76537c065a Avoid divide-by-zero in the gradients example
After 7a738daa97 we require
QLineF::setLength() to take a finite length, and this code was probably
always risky when HoverPoints has two points that are both 0,0.
It's probably a transient condition anyway.

Fixes: QTBUG-92908
Change-Id: If81122d2f78761026b0d656ceffe173132751317
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
2021-04-19 19:56:25 +02:00
..
affine CMake: Fix painting examples to build as standalone projects 2020-10-27 19:26:45 +01:00
basicdrawing CMake: Regenerate examples to set the WIN32_EXECUTABLE property 2020-10-27 12:49:39 +01:00
composition CMake: Fix painting examples to build as standalone projects 2020-10-27 19:26:45 +01:00
concentriccircles CMake: Regenerate examples to set the WIN32_EXECUTABLE property 2020-10-27 12:49:39 +01:00
deform CMake: Fix painting examples to build as standalone projects 2020-10-27 19:26:45 +01:00
fontsampler Get rid of all instance usage of QFontDatabase 2020-11-03 20:36:34 +01:00
gradients Avoid divide-by-zero in the gradients example 2021-04-19 19:56:25 +02:00
imagecomposition CMake: Regenerate examples to set the WIN32_EXECUTABLE property 2020-10-27 12:49:39 +01:00
painterpaths CMake: Regenerate examples to set the WIN32_EXECUTABLE property 2020-10-27 12:49:39 +01:00
pathstroke Port examples away from deprecated QTouchEvent APIs 2021-04-17 09:18:11 +02:00
shared Port examples away from deprecated QTouchEvent APIs 2021-04-17 09:18:11 +02:00
transformations CMake: Regenerate examples to set the WIN32_EXECUTABLE property 2020-10-27 12:49:39 +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.