178ab88562
The (example) code used a real to hold 360 / 7, which is of course 51, discarding the 3/7 that was most likely meant to be kept. Noticed by Coverity (CID 22364). Use 360.0 instead of 360 to get more accurate results. Change-Id: Ifdfbb932589d8ea728710e8b656af651c9f8a7d2 Reviewed-by: Marc Mutz <marc.mutz@kdab.com> |
||
---|---|---|
.. | ||
affine | ||
basicdrawing | ||
composition | ||
concentriccircles | ||
deform | ||
fontsampler | ||
gradients | ||
imagecomposition | ||
painterpaths | ||
pathstroke | ||
shared | ||
transformations | ||
painting.pro | ||
README |
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.