From 806dda08d685bc5f9ed71dfe8b61f21848d48066 Mon Sep 17 00:00:00 2001 From: Gabriel de Dietrich Date: Fri, 17 Aug 2012 13:23:19 +0200 Subject: Moving .qdoc files under examples/widgets/doc Updated those .qdoc files to refer to the new relative examples emplacement. Images and snippets to be moved later. Also grouped all widgets related examples under widgets. Change-Id: Ib29696e2d8948524537f53e8dda88f9ee26a597f Reviewed-by: J-P Nurmi --- examples/widgets/painting/deform/pathdeform.html | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 examples/widgets/painting/deform/pathdeform.html (limited to 'examples/widgets/painting/deform/pathdeform.html') diff --git a/examples/widgets/painting/deform/pathdeform.html b/examples/widgets/painting/deform/pathdeform.html new file mode 100644 index 0000000000..b3f63a8e0a --- /dev/null +++ b/examples/widgets/painting/deform/pathdeform.html @@ -0,0 +1,24 @@ + +
+

Vector deformation

+
+ +

This demo shows how to use advanced vector techniques to draw text +using a QPainterPath.

+ +

We define a vector deformation field in the shape of a lens and apply +this to all points in a path. This means that what is rendered on +screen is not pixel manipulation, but modified vector representations of +the glyphs themselves. This is visible from the high quality of the +antialiased edges for the deformed glyphs.

+ +

To get a fairly complex path we allow the user to type in text and +convert the text to paths. This is done using the +QPainterPath::addText() function.

+ +

The lens is drawn using a single call to drawEllipse(), using +a QRadialGradient to fill it with a specialized color table, +giving the effect of the Sun's reflection and a drop shadow. The lens +is cached as a pixmap for better performance.

+ + -- cgit v1.2.3