<class name="QPainter" doc="/**
&lt;p&gt;The &lt;a href=&quot;QPainter.html#QPainter(com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;QPainter&lt;/tt&gt;&lt;/a&gt; class performs low-level painting on widgets and other paint devices.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QPainter.html#QPainter(com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;QPainter&lt;/tt&gt;&lt;/a&gt; provides highly optimized functions to do most of the drawing GUI programs require. It can draw everything from simple lines to complex shapes like pies and chords. It can also draw aligned text and pixmaps. Normally, it draws in a &amp;quot;natural&amp;quot; coordinate system, but it can also do view and world transformation. &lt;a href=&quot;QPainter.html#QPainter(com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;QPainter&lt;/tt&gt;&lt;/a&gt; can operate on any object that inherits the &lt;a href=&quot;QPaintDevice.html&quot;&gt;&lt;tt&gt;QPaintDevice&lt;/tt&gt;&lt;/a&gt; class.&lt;/p&gt;
&lt;p&gt;The common use of &lt;a href=&quot;QPainter.html#QPainter(com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;QPainter&lt;/tt&gt;&lt;/a&gt; is inside a widget's paint event: Construct and customize (e.g&amp;#x2e; set the pen or the brush) the painter. Then draw. Remember to destroy the &lt;a href=&quot;QPainter.html#QPainter(com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;QPainter&lt;/tt&gt;&lt;/a&gt; object after drawing. For example:&lt;/p&gt;
&lt;pre&gt;    void SimpleExampleWidget::paintEvent(QPaintEvent *)
    {
        QPainter painter(this);
        painter.setPen(Qt::blue);
        painter.setFont(QFont(&amp;quot;Arial&amp;quot;, 30));
        painter.drawText(rect(), Qt::AlignCenter, &amp;quot;Qt&amp;quot;);
    }&lt;/pre&gt;
&lt;p&gt;The core functionality of &lt;a href=&quot;QPainter.html#QPainter(com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;QPainter&lt;/tt&gt;&lt;/a&gt; is drawing, but the class also provide several functions that allows you to customize &lt;a href=&quot;QPainter.html#QPainter(com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;QPainter&lt;/tt&gt;&lt;/a&gt;'s settings and its rendering quality, and others that enable clipping. In addition you can control how different shapes are merged together by specifying the painter's composition mode.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QPainter.html#isActive()&quot;&gt;&lt;tt&gt;isActive&lt;/tt&gt;&lt;/a&gt; function indicates whether the painter is active. A painter is activated by the &lt;a href=&quot;QPainter.html#begin(com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;begin&lt;/tt&gt;&lt;/a&gt; function and the constructor that takes a &lt;a href=&quot;QPaintDevice.html&quot;&gt;&lt;tt&gt;QPaintDevice&lt;/tt&gt;&lt;/a&gt; argument. The &lt;a href=&quot;QPainter.html#end()&quot;&gt;&lt;tt&gt;end&lt;/tt&gt;&lt;/a&gt; function, and the destructor, deactivates it.&lt;/p&gt;
&lt;p&gt;Together with the &lt;a href=&quot;QPaintDevice.html&quot;&gt;&lt;tt&gt;QPaintDevice&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QPaintEngine.html&quot;&gt;&lt;tt&gt;QPaintEngine&lt;/tt&gt;&lt;/a&gt; classes, &lt;a href=&quot;QPainter.html#QPainter(com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;QPainter&lt;/tt&gt;&lt;/a&gt; form the basis for Qt's paint system. &lt;a href=&quot;QPainter.html#QPainter(com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;QPainter&lt;/tt&gt;&lt;/a&gt; is the class used to perform drawing operations. &lt;a href=&quot;QPaintDevice.html&quot;&gt;&lt;tt&gt;QPaintDevice&lt;/tt&gt;&lt;/a&gt; represents a device that can be painted on using a &lt;a href=&quot;QPainter.html#QPainter(com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;QPainter&lt;/tt&gt;&lt;/a&gt;. &lt;a href=&quot;QPaintEngine.html&quot;&gt;&lt;tt&gt;QPaintEngine&lt;/tt&gt;&lt;/a&gt; provides the interface that the painter uses to draw onto different types of devices. If the painter is active, &lt;a href=&quot;QPainter.html#device()&quot;&gt;&lt;tt&gt;device&lt;/tt&gt;&lt;/a&gt; returns the paint device on which the painter paints, and &lt;a href=&quot;QPainter.html#paintEngine()&quot;&gt;&lt;tt&gt;paintEngine&lt;/tt&gt;&lt;/a&gt; returns the paint engine that the painter is currently operating on. For more information, see &lt;a href=&quot;%2E%2E/paintsystem.html&quot;&gt;The Paint System&lt;/tt&gt;&lt;/a&gt; documentation.&lt;/p&gt;
&lt;p&gt;Sometimes it is desirable to make someone else paint on an unusual &lt;a href=&quot;QPaintDevice.html&quot;&gt;&lt;tt&gt;QPaintDevice&lt;/tt&gt;&lt;/a&gt;. &lt;a href=&quot;QPainter.html#QPainter(com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;QPainter&lt;/tt&gt;&lt;/a&gt; supports a static function to do this, &lt;a href=&quot;QPainter.html#setRedirected(com.trolltech.qt.gui.QPaintDeviceInterface, com.trolltech.qt.gui.QPaintDeviceInterface, com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;setRedirected&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; When the paintdevice is a widget, &lt;a href=&quot;QPainter.html#QPainter(com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;QPainter&lt;/tt&gt;&lt;/a&gt; can only be used inside a paintEvent() function or in a function called by paintEvent(); that is unless the Qt::WA_PaintOutsidePaintEvent widget attribute is set. On Mac OS X and Windows, you can only paint in a paintEvent() function regardless of this attribute's setting.&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;#settings&quot;&gt;Settings&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#drawing&quot;&gt;Drawing&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#rendering-quality&quot;&gt;Rendering Quality&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#coordinate-transformations&quot;&gt;Coordinate Transformations&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#clipping&quot;&gt;Clipping&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#composition-modes&quot;&gt;Composition Modes&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;a name=&quot;settings&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Settings&lt;/h3&gt;
&lt;p&gt;There are several settings that you can customize to make &lt;a href=&quot;QPainter.html#QPainter(com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;QPainter&lt;/tt&gt;&lt;/a&gt; draw according to your preferences:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;QPainter.html#font()&quot;&gt;&lt;tt&gt;font&lt;/tt&gt;&lt;/a&gt; is the font used for drawing text. If the painter &lt;a href=&quot;QPainter.html#isActive()&quot;&gt;&lt;tt&gt;isActive&lt;/tt&gt;&lt;/a&gt;, you can retrieve information about the currently set font, and its metrics, using the &lt;a href=&quot;QPainter.html#fontInfo()&quot;&gt;&lt;tt&gt;fontInfo&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QPainter.html#fontMetrics()&quot;&gt;&lt;tt&gt;fontMetrics&lt;/tt&gt;&lt;/a&gt; functions respectively.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QPainter.html#brush()&quot;&gt;&lt;tt&gt;brush&lt;/tt&gt;&lt;/a&gt; defines the color or pattern that is used for filling shapes.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QPainter.html#pen()&quot;&gt;&lt;tt&gt;pen&lt;/tt&gt;&lt;/a&gt; defines the color or stipple that is used for drawing lines or boundaries.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QPainter.html#backgroundMode()&quot;&gt;&lt;tt&gt;backgroundMode&lt;/tt&gt;&lt;/a&gt; defines whether there is a &lt;a href=&quot;QPainter.html#background()&quot;&gt;&lt;tt&gt;background&lt;/tt&gt;&lt;/a&gt; or not, i.e it is either Qt::OpaqueMode or Qt::TransparentMode.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QPainter.html#background()&quot;&gt;&lt;tt&gt;background&lt;/tt&gt;&lt;/a&gt; only applies when &lt;a href=&quot;QPainter.html#backgroundMode()&quot;&gt;&lt;tt&gt;backgroundMode&lt;/tt&gt;&lt;/a&gt; is &lt;tt&gt;Qt::OpaqueMode&lt;/tt&gt; and &lt;a href=&quot;QPainter.html#pen()&quot;&gt;&lt;tt&gt;pen&lt;/tt&gt;&lt;/a&gt; is a stipple. In that case, it describes the color of the background pixels in the stipple.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QPainter.html#brushOrigin()&quot;&gt;&lt;tt&gt;brushOrigin&lt;/tt&gt;&lt;/a&gt; defines the origin of the tiled brushes, normally the origin of widget's background.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QPainter.html#viewport()&quot;&gt;&lt;tt&gt;viewport&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPainter.html#window()&quot;&gt;&lt;tt&gt;window&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPainter.html#worldMatrix()&quot;&gt;&lt;tt&gt;worldMatrix&lt;/tt&gt;&lt;/a&gt; make up the painter's coordinate transformation system. For more information, see the &lt;a href=&quot;QPainter.html#coordinate-transformations&quot;&gt;Coordinate Transformations&lt;/tt&gt;&lt;/a&gt; section and the &lt;a href=&quot;%2E%2E/coordsys.html&quot;&gt;The Coordinate System&lt;/tt&gt;&lt;/a&gt; documentation.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QPainter.html#hasClipping()&quot;&gt;&lt;tt&gt;hasClipping&lt;/tt&gt;&lt;/a&gt; tells whether the painter clips at all. (The paint device clips, too.) If the painter clips, it clips to &lt;a href=&quot;QPainter.html#clipRegion()&quot;&gt;&lt;tt&gt;clipRegion&lt;/tt&gt;&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QPainter.html#layoutDirection()&quot;&gt;&lt;tt&gt;layoutDirection&lt;/tt&gt;&lt;/a&gt; defines the layout direction used by the painter when drawing text.&lt;/li&gt;
&lt;li&gt;matrixEnabled() tells whether world transformation is enabled.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QPainter.html#viewTransformEnabled()&quot;&gt;&lt;tt&gt;viewTransformEnabled&lt;/tt&gt;&lt;/a&gt; tells whether view transformation is enabled.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Note that some of these settings mirror settings in some paint devices, e.g&amp;#x2e; QWidget::font(). The QPainter::begin() function (or equivalently the &lt;a href=&quot;QPainter.html#QPainter(com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;QPainter&lt;/tt&gt;&lt;/a&gt; constructor) copies these attributes from the paint device.&lt;/p&gt;
&lt;p&gt;You can at any time save the &lt;a href=&quot;QPainter.html#QPainter(com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;QPainter&lt;/tt&gt;&lt;/a&gt;'s state by calling the &lt;a href=&quot;QPainter.html#save()&quot;&gt;&lt;tt&gt;save&lt;/tt&gt;&lt;/a&gt; function which saves all the available settings on an internal stack. The &lt;a href=&quot;QPainter.html#restore()&quot;&gt;&lt;tt&gt;restore&lt;/tt&gt;&lt;/a&gt; function pops them back.&lt;/p&gt;
&lt;a name=&quot;drawing&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Drawing&lt;/h3&gt;
&lt;p&gt;&lt;a href=&quot;QPainter.html#QPainter(com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;QPainter&lt;/tt&gt;&lt;/a&gt; provides functions to draw most primitives: &lt;a href=&quot;QPainter.html#drawPoint(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;drawPoint&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPainter.html#drawPoints(com.trolltech.qt.gui.QPolygonF)&quot;&gt;&lt;tt&gt;drawPoints&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPainter.html#drawLine(com.trolltech.qt.gui.QLineF)&quot;&gt;&lt;tt&gt;drawLine&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPainter.html#drawRect(com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;drawRect&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPainter.html#drawRoundRect(int, int, int, int, int, int)&quot;&gt;&lt;tt&gt;drawRoundRect&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPainter.html#drawEllipse(int, int, int, int)&quot;&gt;&lt;tt&gt;drawEllipse&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPainter.html#drawArc(com.trolltech.qt.core.QRect, int, int)&quot;&gt;&lt;tt&gt;drawArc&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPainter.html#drawPie(com.trolltech.qt.core.QRectF, int, int)&quot;&gt;&lt;tt&gt;drawPie&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPainter.html#drawChord(com.trolltech.qt.core.QRectF, int, int)&quot;&gt;&lt;tt&gt;drawChord&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPainter.html#drawPolyline(com.trolltech.qt.gui.QPolygonF)&quot;&gt;&lt;tt&gt;drawPolyline&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPainter.html#drawPolygon(com.trolltech.qt.gui.QPolygon, com.trolltech.qt.core.Qt.FillRule)&quot;&gt;&lt;tt&gt;drawPolygon&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPainter.html#drawConvexPolygon(com.trolltech.qt.gui.QPolygon)&quot;&gt;&lt;tt&gt;drawConvexPolygon&lt;/tt&gt;&lt;/a&gt; and drawCubicBezier(). The two convenience functions, &lt;a href=&quot;QPainter.html#drawRects(java.util.List&lt;com.trolltech.qt.core.QRect&gt;)&quot;&gt;&lt;tt&gt;drawRects&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QPainter.html#drawLines(java.util.List&lt;com.trolltech.qt.gui.QLine&gt;)&quot;&gt;&lt;tt&gt;drawLines&lt;/tt&gt;&lt;/a&gt;, draw the given number of rectangles or lines in the given array of &lt;a href=&quot;%2E%2E/core/QRect.html&quot;&gt;QRects&lt;/a&gt; or &lt;a href=&quot;QLine.html&quot;&gt;QLines&lt;/a&gt; using the current pen and brush.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QPainter.html#QPainter(com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;QPainter&lt;/tt&gt;&lt;/a&gt; class also provides the &lt;a href=&quot;QPainter.html#fillRect(com.trolltech.qt.core.QRectF, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;fillRect&lt;/tt&gt;&lt;/a&gt; function which fills the given &lt;a href=&quot;%2E%2E/core/QRect.html&quot;&gt;&lt;tt&gt;QRect&lt;/tt&gt;&lt;/a&gt;, with the given &lt;a href=&quot;QBrush.html&quot;&gt;&lt;tt&gt;QBrush&lt;/tt&gt;&lt;/a&gt;, and the &lt;a href=&quot;QPainter.html#eraseRect(com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;eraseRect&lt;/tt&gt;&lt;/a&gt; function that erases the area inside the given rectangle.&lt;/p&gt;
&lt;p&gt;All of these functions have both integer and floating point versions.&lt;/p&gt;
&lt;p&gt;&lt;table width=&quot;100%&quot; align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qpainter-basicdrawing.png&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;Basic Drawing Example&lt;/b&gt;&lt;p&gt;The Basic Drawing&lt;/tt&gt; example shows how to display basic graphics primitives in a variety of styles using the &lt;a href=&quot;QPainter.html#QPainter(com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;QPainter&lt;/tt&gt;&lt;/a&gt; class.&lt;/p&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
&lt;p&gt;If you need to draw a complex shape, especially if you need to do so repeatedly, consider creating a &lt;a href=&quot;QPainterPath.html&quot;&gt;&lt;tt&gt;QPainterPath&lt;/tt&gt;&lt;/a&gt; and drawing it using &lt;a href=&quot;QPainter.html#drawPath(com.trolltech.qt.gui.QPainterPath)&quot;&gt;&lt;tt&gt;drawPath&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;table width=&quot;100%&quot; align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;b&gt;Painter Paths example&lt;/b&gt;&lt;p&gt;The &lt;a href=&quot;QPainterPath.html&quot;&gt;&lt;tt&gt;QPainterPath&lt;/tt&gt;&lt;/a&gt; class provides a container for painting operations, enabling graphical shapes to be constructed and reused.&lt;/p&gt;
&lt;p&gt;The Painter Paths&lt;/tt&gt; example shows how painter paths can be used to build complex shapes for rendering.&lt;/p&gt;
&lt;/td&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qpainter-painterpaths.png&quot; /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QPainter.html#QPainter(com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;QPainter&lt;/tt&gt;&lt;/a&gt; also provides the &lt;a href=&quot;QPainter.html#fillPath(com.trolltech.qt.gui.QPainterPath, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;fillPath&lt;/tt&gt;&lt;/a&gt; function which fills the given &lt;a href=&quot;QPainterPath.html&quot;&gt;&lt;tt&gt;QPainterPath&lt;/tt&gt;&lt;/a&gt; with the given &lt;a href=&quot;QBrush.html&quot;&gt;&lt;tt&gt;QBrush&lt;/tt&gt;&lt;/a&gt;, and the &lt;a href=&quot;QPainter.html#strokePath(com.trolltech.qt.gui.QPainterPath, com.trolltech.qt.gui.QPen)&quot;&gt;&lt;tt&gt;strokePath&lt;/tt&gt;&lt;/a&gt; function that draws the outline of the given path (i.e&amp;#x2e; strokes the path).&lt;/p&gt;
&lt;p&gt;See also the Vector Deformation&lt;/tt&gt; demo which shows how to use advanced vector techniques to draw text using a &lt;a href=&quot;QPainterPath.html&quot;&gt;&lt;tt&gt;QPainterPath&lt;/tt&gt;&lt;/a&gt;, the Gradients&lt;/tt&gt; demo which shows the different types of gradients that are available in Qt, and the Path Stroking&lt;/tt&gt; demo which shows Qt's built-in dash patterns and shows how custom patterns can be used to extend the range of available patterns.&lt;/p&gt;
&lt;p&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qpainter-vectordeformation.png&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qpainter-gradients.png&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qpainter-pathstroking.png&quot; /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;thead&gt;&lt;tr valign=&quot;top&quot; class=&quot;qt-style&quot;&gt;&lt;th&gt;Vector Deformation&lt;/tt&gt;&lt;/th&gt;&lt;th&gt;Gradients&lt;/tt&gt;&lt;/th&gt;&lt;th&gt;Path Stroking&lt;/tt&gt;&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;/table&gt;&lt;/p&gt;
&lt;p&gt;There are functions to draw pixmaps/images, namely &lt;a href=&quot;QPainter.html#drawPixmap(com.trolltech.qt.core.QRect, com.trolltech.qt.gui.QPixmap, com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;drawPixmap&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPainter.html#drawImage(com.trolltech.qt.core.QRectF, com.trolltech.qt.gui.QImage)&quot;&gt;&lt;tt&gt;drawImage&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QPainter.html#drawTiledPixmap(com.trolltech.qt.core.QRect, com.trolltech.qt.gui.QPixmap, com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;drawTiledPixmap&lt;/tt&gt;&lt;/a&gt;. Both &lt;a href=&quot;QPainter.html#drawPixmap(com.trolltech.qt.core.QRect, com.trolltech.qt.gui.QPixmap, com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;drawPixmap&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QPainter.html#drawImage(com.trolltech.qt.core.QRectF, com.trolltech.qt.gui.QImage)&quot;&gt;&lt;tt&gt;drawImage&lt;/tt&gt;&lt;/a&gt; produce the same result, except that &lt;a href=&quot;QPainter.html#drawPixmap(com.trolltech.qt.core.QRect, com.trolltech.qt.gui.QPixmap, com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;drawPixmap&lt;/tt&gt;&lt;/a&gt; is faster on-screen while &lt;a href=&quot;QPainter.html#drawImage(com.trolltech.qt.core.QRectF, com.trolltech.qt.gui.QImage)&quot;&gt;&lt;tt&gt;drawImage&lt;/tt&gt;&lt;/a&gt; may be faster on a &lt;a href=&quot;QPrinter.html&quot;&gt;&lt;tt&gt;QPrinter&lt;/tt&gt;&lt;/a&gt; or other devices.&lt;/p&gt;
&lt;p&gt;Text drawing is done using &lt;a href=&quot;QPainter.html#drawText(com.trolltech.qt.core.QPoint, java.lang.String)&quot;&gt;&lt;tt&gt;drawText&lt;/tt&gt;&lt;/a&gt;. When you need fine-grained positioning, &lt;a href=&quot;QPainter.html#boundingRect(int, int, int, int, int, java.lang.String)&quot;&gt;&lt;tt&gt;boundingRect&lt;/tt&gt;&lt;/a&gt; tells you where a given &lt;a href=&quot;QPainter.html#drawText(com.trolltech.qt.core.QPoint, java.lang.String)&quot;&gt;&lt;tt&gt;drawText&lt;/tt&gt;&lt;/a&gt; command will draw.&lt;/p&gt;
&lt;p&gt;There is a &lt;a href=&quot;QPainter.html#drawPicture(int, int, com.trolltech.qt.gui.QPicture)&quot;&gt;&lt;tt&gt;drawPicture&lt;/tt&gt;&lt;/a&gt; function that draws the contents of an entire &lt;a href=&quot;QPicture.html&quot;&gt;&lt;tt&gt;QPicture&lt;/tt&gt;&lt;/a&gt;. The &lt;a href=&quot;QPainter.html#drawPicture(int, int, com.trolltech.qt.gui.QPicture)&quot;&gt;&lt;tt&gt;drawPicture&lt;/tt&gt;&lt;/a&gt; function is the only function that disregards all the painter's settings as &lt;a href=&quot;QPicture.html&quot;&gt;&lt;tt&gt;QPicture&lt;/tt&gt;&lt;/a&gt; has its own settings.&lt;/p&gt;
&lt;a name=&quot;rendering-quality&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Rendering Quality&lt;/h3&gt;
&lt;p&gt;To get the optimal rendering result using &lt;a href=&quot;QPainter.html#QPainter(com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;QPainter&lt;/tt&gt;&lt;/a&gt;, you should use the platform independent &lt;a href=&quot;QImage.html&quot;&gt;&lt;tt&gt;QImage&lt;/tt&gt;&lt;/a&gt; as paint device; i.e&amp;#x2e; using &lt;a href=&quot;QImage.html&quot;&gt;&lt;tt&gt;QImage&lt;/tt&gt;&lt;/a&gt; will ensure that the result has an identical pixel representation on any platform.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QPainter.html#QPainter(com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;QPainter&lt;/tt&gt;&lt;/a&gt; class also provides a means of controlling the rendering quality through its &lt;a href=&quot;QPainter.html#RenderHint-enum&quot;&gt;&lt;tt&gt;RenderHint&lt;/tt&gt;&lt;/a&gt; enum and the support for floating point precision: All the functions for drawing primitives has a floating point version. These are often used in combination with the &lt;a href=&quot;QPainter.html#RenderHint-enum&quot;&gt;QPainter::AntiAliasing&lt;/a&gt; render hint.&lt;/p&gt;
&lt;p&gt;&lt;table width=&quot;100%&quot; align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qpainter-concentriccircles.png&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;Concentric Circles Example&lt;/b&gt;&lt;p&gt;The Concentric Circles&lt;/tt&gt; example shows the improved rendering quality that can be obtained using floating point precision and anti-aliasing when drawing custom widgets.&lt;/p&gt;
&lt;p&gt;The application's main window displays several widgets which are drawn using the various combinations of precision and anti-aliasing.&lt;/p&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QPainter.html#RenderHint-enum&quot;&gt;&lt;tt&gt;RenderHint&lt;/tt&gt;&lt;/a&gt; enum specifies flags to &lt;a href=&quot;QPainter.html#QPainter(com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;QPainter&lt;/tt&gt;&lt;/a&gt; that may or may not be respected by any given engine. &lt;a href=&quot;QPainter.html#RenderHint-enum&quot;&gt;QPainter::AntiAliasing&lt;/a&gt; indicates that the engine should antialias edges of primitives if possible, &lt;a href=&quot;QPainter.html#RenderHint-enum&quot;&gt;QPainter::TextAntialiasing&lt;/a&gt; indicates that the engine should antialias text if possible, and the &lt;a href=&quot;QPainter.html#RenderHint-enum&quot;&gt;QPainter::SmoothPixmapTransform&lt;/a&gt; indicates that the engine should use a smooth pixmap transformation algorithm. &lt;a href=&quot;QPainter.html#RenderHint-enum&quot;&gt;HighQualityAntialiasing&lt;/a&gt; is an OpenGL-specific rendering hint indicating that the engine should use fragment programs and offscreen rendering for antialiasing.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QPainter.html#renderHints()&quot;&gt;&lt;tt&gt;renderHints&lt;/tt&gt;&lt;/a&gt; function returns a flag that specifies the rendering hints that are set for this painter. Use the &lt;a href=&quot;QPainter.html#setRenderHint(com.trolltech.qt.gui.QPainter.RenderHint, boolean)&quot;&gt;&lt;tt&gt;setRenderHint&lt;/tt&gt;&lt;/a&gt; function to set or clear the currently set RenderHints.&lt;/p&gt;
&lt;a name=&quot;coordinate-transformations&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Coordinate Transformations&lt;/h3&gt;
&lt;p&gt;Normally, the &lt;a href=&quot;QPainter.html#QPainter(com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;QPainter&lt;/tt&gt;&lt;/a&gt; operates on the device's own coordinate system (usually pixels), but &lt;a href=&quot;QPainter.html#QPainter(com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;QPainter&lt;/tt&gt;&lt;/a&gt; has good support for coordinate transformations.&lt;/p&gt;
&lt;p&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qpainter-clock.png&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qpainter-rotation.png&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qpainter-scale.png&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qpainter-translation.png&quot; /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;thead&gt;&lt;tr valign=&quot;top&quot; class=&quot;qt-style&quot;&gt;&lt;th&gt;nop&lt;/th&gt;&lt;th&gt;&lt;a href=&quot;QPainter.html#rotate(double)&quot;&gt;&lt;tt&gt;rotate&lt;/tt&gt;&lt;/a&gt;&lt;/th&gt;&lt;th&gt;&lt;a href=&quot;QPainter.html#scale(double, double)&quot;&gt;&lt;tt&gt;scale&lt;/tt&gt;&lt;/a&gt;&lt;/th&gt;&lt;th&gt;&lt;a href=&quot;QPainter.html#translate(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;translate&lt;/tt&gt;&lt;/a&gt;&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;/table&gt;&lt;/p&gt;
&lt;p&gt;The most commonly used transformations are scaling, rotation, translation and shearing. Use the &lt;a href=&quot;QPainter.html#scale(double, double)&quot;&gt;&lt;tt&gt;scale&lt;/tt&gt;&lt;/a&gt; function to scale the coordinate system by a given offset, the &lt;a href=&quot;QPainter.html#rotate(double)&quot;&gt;&lt;tt&gt;rotate&lt;/tt&gt;&lt;/a&gt; function to rotate it clockwise and &lt;a href=&quot;QPainter.html#translate(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;translate&lt;/tt&gt;&lt;/a&gt; to translate it (i.e&amp;#x2e; adding a given offset to the points). You can also twist the coordinate system around the origin using the &lt;a href=&quot;QPainter.html#shear(double, double)&quot;&gt;&lt;tt&gt;shear&lt;/tt&gt;&lt;/a&gt; function. See the Affine Transformations&lt;/tt&gt; demo for a visualization of a sheared coordinate system.&lt;/p&gt;
&lt;p&gt;See also the Transformations&lt;/tt&gt; example which shows how transformations influence the way that &lt;a href=&quot;QPainter.html#QPainter(com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;QPainter&lt;/tt&gt;&lt;/a&gt; renders graphics primitives. In particular it shows how the order of transformations affects the result.&lt;/p&gt;
&lt;p&gt;&lt;table width=&quot;100%&quot; align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;b&gt;Affine Transformations Demo&lt;/b&gt;&lt;p&gt;The Affine Transformations&lt;/tt&gt; demo show Qt's ability to perform affine transformations on painting operations. The demo also allows the user to experiment with the transformation operations and see the results immediately.&lt;/p&gt;
&lt;/td&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qpainter-affinetransformations.png&quot; /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
&lt;p&gt;All the tranformation operations operate on the transformation &lt;a href=&quot;QPainter.html#worldMatrix()&quot;&gt;&lt;tt&gt;worldMatrix&lt;/tt&gt;&lt;/a&gt;. A matrix transforms a point in the plane to another point. For more information about the transformation matrix, see the &lt;a href=&quot;%2E%2E/coordsys.html&quot;&gt;The Coordinate System&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QMatrix.html&quot;&gt;&lt;tt&gt;QMatrix&lt;/tt&gt;&lt;/a&gt; documentation.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QPainter.html#setWorldMatrix(com.trolltech.qt.gui.QMatrix, boolean)&quot;&gt;&lt;tt&gt;setWorldMatrix&lt;/tt&gt;&lt;/a&gt; function can replace or add to the currently set &lt;a href=&quot;QPainter.html#worldMatrix()&quot;&gt;&lt;tt&gt;worldMatrix&lt;/tt&gt;&lt;/a&gt;. The &lt;a href=&quot;QPainter.html#resetMatrix()&quot;&gt;&lt;tt&gt;resetMatrix&lt;/tt&gt;&lt;/a&gt; function resets any transformations that were made using &lt;a href=&quot;QPainter.html#translate(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;translate&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPainter.html#scale(double, double)&quot;&gt;&lt;tt&gt;scale&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPainter.html#shear(double, double)&quot;&gt;&lt;tt&gt;shear&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPainter.html#rotate(double)&quot;&gt;&lt;tt&gt;rotate&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPainter.html#setWorldMatrix(com.trolltech.qt.gui.QMatrix, boolean)&quot;&gt;&lt;tt&gt;setWorldMatrix&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPainter.html#setViewport(com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;setViewport&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QPainter.html#setWindow(com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;setWindow&lt;/tt&gt;&lt;/a&gt; functions. The &lt;a href=&quot;QPainter.html#deviceMatrix()&quot;&gt;&lt;tt&gt;deviceMatrix&lt;/tt&gt;&lt;/a&gt; returns the matrix that transforms from logical coordinates to device coordinates of the platform dependent paint device. The latter function is only needed when using platform painting commands on the platform dependent handle, and the platform does not do transformations nativly.&lt;/p&gt;
&lt;p&gt;When drawing with &lt;a href=&quot;QPainter.html#QPainter(com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;QPainter&lt;/tt&gt;&lt;/a&gt;, we specify points using logical coordinates which then are converted into the physical coordinates of the paint device. The mapping of the logical coordinates to the physical coordinates are handled by &lt;a href=&quot;QPainter.html#QPainter(com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;QPainter&lt;/tt&gt;&lt;/a&gt;'s &lt;a href=&quot;QPainter.html#combinedMatrix()&quot;&gt;&lt;tt&gt;combinedMatrix&lt;/tt&gt;&lt;/a&gt;, a combination of &lt;a href=&quot;QPainter.html#viewport()&quot;&gt;&lt;tt&gt;viewport&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QPainter.html#window()&quot;&gt;&lt;tt&gt;window&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QPainter.html#worldMatrix()&quot;&gt;&lt;tt&gt;worldMatrix&lt;/tt&gt;&lt;/a&gt;. The &lt;a href=&quot;QPainter.html#viewport()&quot;&gt;&lt;tt&gt;viewport&lt;/tt&gt;&lt;/a&gt; represents the physical coordinates specifying an arbitrary rectangle, the &lt;a href=&quot;QPainter.html#window()&quot;&gt;&lt;tt&gt;window&lt;/tt&gt;&lt;/a&gt; describes the same rectangle in logical coordinates, and the &lt;a href=&quot;QPainter.html#worldMatrix()&quot;&gt;&lt;tt&gt;worldMatrix&lt;/tt&gt;&lt;/a&gt; is identical with the transformation matrix.&lt;/p&gt;
&lt;p&gt;See also &lt;a href=&quot;%2E%2E/coordsys.html&quot;&gt;The Coordinate System&lt;/tt&gt;&lt;/a&gt; documentation.&lt;/p&gt;
&lt;a name=&quot;clipping&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Clipping&lt;/h3&gt;
&lt;p&gt;&lt;a href=&quot;QPainter.html#QPainter(com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;QPainter&lt;/tt&gt;&lt;/a&gt; can clip any drawing operation to a rectangle, a region, or a vector path. The current clip is available using the functions &lt;a href=&quot;QPainter.html#clipRegion()&quot;&gt;&lt;tt&gt;clipRegion&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QPainter.html#clipPath()&quot;&gt;&lt;tt&gt;clipPath&lt;/tt&gt;&lt;/a&gt;. Whether paths or regions are preferred (faster) depends on the underlying &lt;a href=&quot;QPainter.html#paintEngine()&quot;&gt;&lt;tt&gt;paintEngine&lt;/tt&gt;&lt;/a&gt;. For example, the &lt;a href=&quot;QImage.html&quot;&gt;&lt;tt&gt;QImage&lt;/tt&gt;&lt;/a&gt; paint engine prefers paths while the X11 paint engine prefers regions. Setting a clip is done in the painters logical coordinates.&lt;/p&gt;
&lt;p&gt;After &lt;a href=&quot;QPainter.html#QPainter(com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;QPainter&lt;/tt&gt;&lt;/a&gt;'s clipping, the paint device may also clip. For example, most widgets clip away the pixels used by child widgets, and most printers clip away an area near the edges of the paper. This additional clipping is not reflected by the return value of &lt;a href=&quot;QPainter.html#clipRegion()&quot;&gt;&lt;tt&gt;clipRegion&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QPainter.html#hasClipping()&quot;&gt;&lt;tt&gt;hasClipping&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;a name=&quot;composition-modes&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Composition Modes&lt;/h3&gt;
&lt;a name=&quot;composition-modes&quot;&gt;&lt;/a&gt;&lt;p&gt;&lt;a href=&quot;QPainter.html#QPainter(com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;QPainter&lt;/tt&gt;&lt;/a&gt; provides the &lt;a href=&quot;QPainter.html#CompositionMode-enum&quot;&gt;&lt;tt&gt;CompositionMode&lt;/tt&gt;&lt;/a&gt; enum which defines the Porter-Duff rules for digital image compositing; it describes a model for combining the pixels in one image, the source, with the pixels in another image, the destination.&lt;/p&gt;
&lt;p&gt;The two most common forms of composition are Source&lt;/tt&gt; and SourceOver. Source&lt;/tt&gt; is used to draw opaque objects onto a paint device. In this mode, each pixel in the source replaces the corresponding pixel in the destination. In SourceOver composition mode, the source object is transparent and is drawn on top of the destination.&lt;/p&gt;
&lt;p&gt;Note that composition transformation operates pixelwise. For that reason, there is a difference between using the grahic primitive itself and its bounding rectangle: The bounding rect contains pixels with alpha == 0 (i.e the pixels surrounding the primitive). These pixels will overwrite the other image's pixels, affectively clearing those, while the primitive only overwrites its own area.&lt;/p&gt;
&lt;p&gt;&lt;table width=&quot;100%&quot; align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qpainter-compositiondemo.png&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;Composition Modes Demo&lt;/b&gt;&lt;p&gt;The Composition Modes&lt;/tt&gt; demo, available in Qt's demo directory, allows you to experiment with the various composition modes and see the results immediately.&lt;/p&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;

@see &lt;a href=&quot;QPaintDevice.html&quot;&gt;&lt;tt&gt;QPaintDevice&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPaintEngine.html&quot;&gt;&lt;tt&gt;QPaintEngine&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QtSvg Module&lt;/tt&gt;
@see Basic Drawing Example&lt;/tt&gt; */">
    <method name="public QPainter()" doc="/**
&lt;p&gt;Constructs a painter.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#begin(com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;begin&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainter.html#end()&quot;&gt;&lt;tt&gt;end&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QPainter(com.trolltech.qt.gui.QPaintDeviceInterface arg__1)" doc="/**
&lt;p&gt;Constructs a painter that begins painting the paint &lt;tt&gt;arg__1&lt;/tt&gt; immediately.&lt;/p&gt;
&lt;p&gt;This constructor is convenient for short-lived painters, e.g&amp;#x2e; in a QWidget::paintEvent() and should be used only once. The constructor calls &lt;a href=&quot;QPainter.html#begin(com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;begin&lt;/tt&gt;&lt;/a&gt; for you and the &lt;a href=&quot;QPainter.html#QPainter(com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;QPainter&lt;/tt&gt;&lt;/a&gt; destructor automatically calls &lt;a href=&quot;QPainter.html#end()&quot;&gt;&lt;tt&gt;end&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Here's an example using &lt;a href=&quot;QPainter.html#begin(com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;begin&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QPainter.html#end()&quot;&gt;&lt;tt&gt;end&lt;/tt&gt;&lt;/a&gt;:&lt;/p&gt;
&lt;pre&gt;    void MyWidget::paintEvent(QPaintEvent *)
    {
        QPainter p;
        p.begin(this);
        p.drawLine(...);        &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; drawing code
        p.end();
    }&lt;/pre&gt;
&lt;p&gt;The same example using this constructor:&lt;/p&gt;
&lt;pre&gt;    void MyWidget::paintEvent(QPaintEvent *)
    {
        QPainter p(this);
        p.drawLine(...);        &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; drawing code
    }&lt;/pre&gt;
&lt;p&gt;Since the constructor cannot provide feedback when the initialization of the painter failed you should rather use &lt;a href=&quot;QPainter.html#begin(com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;begin&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QPainter.html#end()&quot;&gt;&lt;tt&gt;end&lt;/tt&gt;&lt;/a&gt; to paint on external devices, e.g&amp;#x2e; printers.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#begin(com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;begin&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainter.html#end()&quot;&gt;&lt;tt&gt;end&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QBrush background()" doc="/**
&lt;p&gt;Returns the current background brush.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#setBackground(com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;setBackground&lt;/tt&gt;&lt;/a&gt;
@see Settings&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.core.Qt.BGMode backgroundMode()" doc="/**
&lt;p&gt;Returns the current background mode.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#setBackgroundMode(com.trolltech.qt.core.Qt.BGMode)&quot;&gt;&lt;tt&gt;setBackgroundMode&lt;/tt&gt;&lt;/a&gt;
@see Settings&lt;/tt&gt; */"/>
    <method name="public final boolean begin(com.trolltech.qt.gui.QPaintDeviceInterface arg__1)" doc="/**
&lt;p&gt;Begins painting the paint &lt;tt&gt;arg__1&lt;/tt&gt; and returns true if successful; otherwise returns false.&lt;/p&gt;
&lt;p&gt;Notice that all painter settings (&lt;a href=&quot;QPainter.html#setPen(com.trolltech.qt.core.Qt.PenStyle)&quot;&gt;&lt;tt&gt;setPen&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPainter.html#setBrush(com.trolltech.qt.core.Qt.BrushStyle)&quot;&gt;&lt;tt&gt;setBrush&lt;/tt&gt;&lt;/a&gt; etc.) are reset to default values when &lt;a href=&quot;QPainter.html#begin(com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;begin&lt;/tt&gt;&lt;/a&gt; is called.&lt;/p&gt;
&lt;p&gt;The errors that can occur are serious problems, such as these:&lt;/p&gt;
&lt;pre&gt;    painter-&amp;gt;begin(0); &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; impossible - paint device cannot be 0

    QPixmap image(0, 0);
    painter-&amp;gt;begin(&amp;amp;image); &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; impossible - image.isNull() == true;

    painter-&amp;gt;begin(myWidget);
    painter2-&amp;gt;begin(myWidget); &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; impossible - only one painter at a time&lt;/pre&gt;
&lt;p&gt;Note that most of the time, you can use one of the constructors instead of &lt;a href=&quot;QPainter.html#begin(com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;begin&lt;/tt&gt;&lt;/a&gt;, and that &lt;a href=&quot;QPainter.html#end()&quot;&gt;&lt;tt&gt;end&lt;/tt&gt;&lt;/a&gt; is automatically done at destruction.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; A paint device can only be painted by one painter at a time.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#end()&quot;&gt;&lt;tt&gt;end&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainter.html#QPainter(com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;QPainter&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QRectF boundingRect(com.trolltech.qt.core.QRectF rect, java.lang.String text, com.trolltech.qt.gui.QTextOption o)" doc="/**
&lt;p&gt;Instead of specifying flags as a bitwise OR of the Qt::AlignmentFlag and Qt::TextFlag, this overloaded function takes an &lt;tt&gt;o&lt;/tt&gt; argument. The &lt;a href=&quot;QTextOption.html&quot;&gt;&lt;tt&gt;QTextOption&lt;/tt&gt;&lt;/a&gt; class provides a description of general rich text properties.&lt;/p&gt;

@see &lt;a href=&quot;QTextOption.html&quot;&gt;&lt;tt&gt;QTextOption&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QRectF boundingRect(com.trolltech.qt.core.QRectF rect, java.lang.String text)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPainter.html#boundingRect(int, int, int, int, int, java.lang.String)&quot;&gt;&lt;tt&gt;boundingRect&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;rect&lt;/tt&gt;, &lt;tt&gt;text&lt;/tt&gt;, QTextOption()). */"/>
    <method name="public final com.trolltech.qt.core.QRect boundingRect(com.trolltech.qt.core.QRect rect, int flags, java.lang.String text)" doc="/**
&lt;p&gt;Returns the bounding rectangle of the &lt;tt&gt;text&lt;/tt&gt; as it will appear when drawn inside the given &lt;tt&gt;rect&lt;/tt&gt; with the specified &lt;tt&gt;flags&lt;/tt&gt; using the currently set &lt;a href=&quot;QPainter.html#font()&quot;&gt;&lt;tt&gt;font&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.core.QRectF boundingRect(com.trolltech.qt.core.QRectF rect, int flags, java.lang.String text)" doc="/**
&lt;p&gt;Returns the bounding rectangle of the &lt;tt&gt;text&lt;/tt&gt; as it will appear when drawn inside the given &lt;tt&gt;rect&lt;/tt&gt; with the specified &lt;tt&gt;flags&lt;/tt&gt; using the currently set &lt;a href=&quot;QPainter.html#font()&quot;&gt;&lt;tt&gt;font&lt;/tt&gt;&lt;/a&gt;; i.e the function tells you where the &lt;a href=&quot;QPainter.html#drawText(com.trolltech.qt.core.QPoint, java.lang.String)&quot;&gt;&lt;tt&gt;drawText&lt;/tt&gt;&lt;/a&gt; function will draw when given the same arguments.&lt;/p&gt;
&lt;p&gt;If the &lt;tt&gt;text&lt;/tt&gt; does not fit within the given &lt;tt&gt;rect&lt;/tt&gt; using the specified &lt;tt&gt;flags&lt;/tt&gt;, the function returns the required rectangle.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;flags&lt;/tt&gt; argument is a bitwise OR of the following flags:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Qt::AlignLeft&lt;/li&gt;
&lt;li&gt;Qt::AlignRight&lt;/li&gt;
&lt;li&gt;Qt::AlignHCenter&lt;/li&gt;
&lt;li&gt;Qt::AlignTop&lt;/li&gt;
&lt;li&gt;Qt::AlignBottom&lt;/li&gt;
&lt;li&gt;Qt::AlignVCenter&lt;/li&gt;
&lt;li&gt;Qt::AlignCenter&lt;/li&gt;
&lt;li&gt;Qt::TextSingleLine&lt;/li&gt;
&lt;li&gt;Qt::TextExpandTabs&lt;/li&gt;
&lt;li&gt;Qt::TextShowMnemonic&lt;/li&gt;
&lt;li&gt;Qt::TextWordWrap&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If several of the horizontal or several of the vertical alignment flags are set, the resulting alignment is undefined.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#drawText(com.trolltech.qt.core.QPoint, java.lang.String)&quot;&gt;&lt;tt&gt;drawText&lt;/tt&gt;&lt;/a&gt;
@see Qt::Alignment&lt;/tt&gt;
@see &lt;tt&gt;Qt::TextFlag&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.core.QRect boundingRect(int x, int y, int w, int h, int flags, java.lang.String text)" doc="/**
&lt;p&gt;Returns the bounding rectangle of the given &lt;tt&gt;text&lt;/tt&gt; as it will appear when drawn inside the rectangle beginning at the point (&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;) with width &lt;tt&gt;w&lt;/tt&gt; and height &lt;tt&gt;h&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QBrush brush()" doc="/**
&lt;p&gt;Returns the painter's current brush.&lt;/p&gt;

@see &lt;tt&gt;QPainter::setBrush&lt;/tt&gt;
@see Settings&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.core.QPoint brushOrigin()" doc="/**
&lt;p&gt;Returns the currently set brush origin.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#setBrushOrigin(com.trolltech.qt.core.QPointF)&quot;&gt;&lt;tt&gt;setBrushOrigin&lt;/tt&gt;&lt;/a&gt;
@see Settings&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QPainterPath clipPath()" doc="/**
&lt;p&gt;Returns the currently clip as a path. Note that the clip path is given in logical coordinates.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#setClipPath(com.trolltech.qt.gui.QPainterPath, com.trolltech.qt.core.Qt.ClipOperation)&quot;&gt;&lt;tt&gt;setClipPath&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainter.html#clipRegion()&quot;&gt;&lt;tt&gt;clipRegion&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainter.html#setClipping(boolean)&quot;&gt;&lt;tt&gt;setClipping&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QRegion clipRegion()" doc="/**
&lt;p&gt;Returns the currently set clip region. Note that the clip region is given in logical coordinates.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#setClipRegion(com.trolltech.qt.gui.QRegion, com.trolltech.qt.core.Qt.ClipOperation)&quot;&gt;&lt;tt&gt;setClipRegion&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainter.html#clipPath()&quot;&gt;&lt;tt&gt;clipPath&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainter.html#setClipping(boolean)&quot;&gt;&lt;tt&gt;setClipping&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QMatrix combinedMatrix()" doc="/**
&lt;p&gt;Returns the transformation matrix combining the current window/viewport and world transformation.&lt;/p&gt;
&lt;p&gt;It is advisable to use &lt;a href=&quot;QPainter.html#combinedTransform()&quot;&gt;&lt;tt&gt;combinedTransform&lt;/tt&gt;&lt;/a&gt; instead of this function to preserve the properties of perspective transformations.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#setWorldMatrix(com.trolltech.qt.gui.QMatrix, boolean)&quot;&gt;&lt;tt&gt;setWorldMatrix&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainter.html#setWindow(com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;setWindow&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainter.html#setViewport(com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;setViewport&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QTransform combinedTransform()" doc="/**
&lt;p&gt;Returns the transformation matrix combining the current window/viewport and world transformation.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#setWorldMatrix(com.trolltech.qt.gui.QMatrix, boolean)&quot;&gt;&lt;tt&gt;setWorldMatrix&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainter.html#setWindow(com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;setWindow&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainter.html#setViewport(com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;setViewport&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QPainter.CompositionMode compositionMode()" doc="/**
&lt;p&gt;Returns the current composition mode.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#CompositionMode-enum&quot;&gt;&lt;tt&gt;CompositionMode&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainter.html#setCompositionMode(com.trolltech.qt.gui.QPainter.CompositionMode)&quot;&gt;&lt;tt&gt;setCompositionMode&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QPaintDeviceInterface device()" doc="/**
&lt;p&gt;Returns the paint device on which this painter is currently painting, or 0 if the painter is not active.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#isActive()&quot;&gt;&lt;tt&gt;isActive&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QMatrix deviceMatrix()" doc="/**
&lt;p&gt;Returns the matrix that transforms from logical coordinates to device coordinates of the platform dependent paint device.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Note:&lt;/b&gt; It is advisable to use &lt;a href=&quot;QPainter.html#deviceTransform()&quot;&gt;&lt;tt&gt;deviceTransform&lt;/tt&gt;&lt;/a&gt; instead of this function to preserve the properties of perspective transformations.&lt;/p&gt;
&lt;p&gt;This function is &lt;i&gt;only&lt;/i&gt; needed when using platform painting commands on the platform dependent handle (Qt::HANDLE), and the platform does not do transformations nativly.&lt;/p&gt;
&lt;p&gt;The QPaintEngine::PaintEngineFeature enum can be queried to determine whether the platform performs the transformations or not.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#worldMatrix()&quot;&gt;&lt;tt&gt;worldMatrix&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QPaintEngine::hasFeature&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QTransform deviceTransform()" doc="/**
&lt;p&gt;Returns the matrix that transforms from logical coordinates to device coordinates of the platform dependent paint device.&lt;/p&gt;
&lt;p&gt;This function is &lt;i&gt;only&lt;/i&gt; needed when using platform painting commands on the platform dependent handle (Qt::HANDLE), and the platform does not do transformations nativly.&lt;/p&gt;
&lt;p&gt;The QPaintEngine::PaintEngineFeature enum can be queried to determine whether the platform performs the transformations or not.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#worldTransform()&quot;&gt;&lt;tt&gt;worldTransform&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QPaintEngine::hasFeature&lt;/tt&gt; */"/>
    <method name="public final void drawArc(com.trolltech.qt.core.QRectF rect, int a, int alen)" doc="/**
&lt;p&gt;Draws the arc defined by the given &lt;tt&gt;rect&lt;/tt&gt;, &lt;tt&gt;a&lt;/tt&gt; and &lt;tt&gt;alen&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;a&lt;/tt&gt; and &lt;tt&gt;alen&lt;/tt&gt; must be specified in 1/16th of a degree, i.e&amp;#x2e; a full circle equals 5760 (16 * 360). Positive values for the angles mean counter-clockwise while negative values mean the clockwise direction. Zero degrees is at the 3 o'clock position.&lt;/p&gt;
&lt;p&gt;&lt;table width=&quot;100%&quot; align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qpainter-arc.png&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;pre&gt;    QRectF rectangle(10.0, 20.0, 80.0, 60.0);
    int startAngle = 30 * 16;
    int spanAngle = 120 * 16;

    QPainter painter(this);
    painter.drawArc(rectangle, startAngle, spanAngle);&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#drawPie(com.trolltech.qt.core.QRectF, int, int)&quot;&gt;&lt;tt&gt;drawPie&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainter.html#drawChord(com.trolltech.qt.core.QRectF, int, int)&quot;&gt;&lt;tt&gt;drawChord&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/coordsys.html&quot;&gt;The Coordinate System&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void drawArc(int x, int y, int w, int h, int a, int alen)" doc="/**
&lt;p&gt;Draws the arc defined by the rectangle beginning at (&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;) with the specified &lt;tt&gt;w&lt;/tt&gt; and &lt;tt&gt;h&lt;/tt&gt;, and the given &lt;tt&gt;a&lt;/tt&gt; and &lt;tt&gt;alen&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void drawArc(com.trolltech.qt.core.QRect arg__1, int a, int alen)" doc="/**
&lt;p&gt;Draws the arc defined by the given &lt;tt&gt;arg__1&lt;/tt&gt;, &lt;tt&gt;a&lt;/tt&gt; and &lt;tt&gt;alen&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void drawChord(int x, int y, int w, int h, int a, int alen)" doc="/**
&lt;p&gt;Draws the chord defined by the rectangle beginning at (&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;) with the specified &lt;tt&gt;w&lt;/tt&gt; and &lt;tt&gt;h&lt;/tt&gt;, and the given &lt;tt&gt;a&lt;/tt&gt; and &lt;tt&gt;alen&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void drawChord(com.trolltech.qt.core.QRect arg__1, int a, int alen)" doc="/**
&lt;p&gt;Draws the chord defined by the given &lt;tt&gt;arg__1&lt;/tt&gt;, &lt;tt&gt;a&lt;/tt&gt; and &lt;tt&gt;alen&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void drawChord(com.trolltech.qt.core.QRectF rect, int a, int alen)" doc="/**
&lt;p&gt;Draws the chord defined by the given &lt;tt&gt;rect&lt;/tt&gt;, &lt;tt&gt;a&lt;/tt&gt; and &lt;tt&gt;alen&lt;/tt&gt;. The chord is filled with the current &lt;a href=&quot;QPainter.html#brush()&quot;&gt;&lt;tt&gt;brush&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The startAngle and spanAngle must be specified in 1/16th of a degree, i.e&amp;#x2e; a full circle equals 5760 (16 * 360). Positive values for the angles mean counter-clockwise while negative values mean the clockwise direction. Zero degrees is at the 3 o'clock position.&lt;/p&gt;
&lt;p&gt;&lt;table width=&quot;100%&quot; align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qpainter-chord.png&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;pre&gt;    QRectF rectangle(10.0, 20.0, 80.0, 60.0);
    int startAngle = 30 * 16;
    int spanAngle = 120 * 16;

    QPainter painter(this);
    painter.drawChord(rect, startAngle, spanAngle);&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#drawArc(com.trolltech.qt.core.QRect, int, int)&quot;&gt;&lt;tt&gt;drawArc&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainter.html#drawPie(com.trolltech.qt.core.QRectF, int, int)&quot;&gt;&lt;tt&gt;drawPie&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/coordsys.html&quot;&gt;The Coordinate System&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void drawConvexPolygon(com.trolltech.qt.gui.QPolygonF polygon)" doc="/**
&lt;p&gt;Draws the convex polygon defined by &lt;tt&gt;polygon&lt;/tt&gt; using the current pen and brush.&lt;/p&gt;
 */"/>
    <method name="public final void drawConvexPolygon(com.trolltech.qt.gui.QPolygon polygon)" doc="/**
&lt;p&gt;Draws the convex polygon defined by &lt;tt&gt;polygon&lt;/tt&gt; using the current pen and brush.&lt;/p&gt;
 */"/>
    <method name="public final void drawEllipse(com.trolltech.qt.core.QRectF r)" doc="/**
&lt;p&gt;Draws the ellipse defined by the given &lt;tt&gt;r&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;A filled ellipse has a size of &lt;tt&gt;r&lt;/tt&gt;.size(). A stroked ellipse has a size of &lt;tt&gt;r&lt;/tt&gt;.size() plus the pen width.&lt;/p&gt;
&lt;p&gt;&lt;table width=&quot;100%&quot; align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qpainter-ellipse.png&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;pre&gt;    QRectF rectangle(10.0, 20.0, 80.0, 60.0);

    QPainter painter(this);
    painter.drawEllipse(rectangle);&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#drawPie(com.trolltech.qt.core.QRectF, int, int)&quot;&gt;&lt;tt&gt;drawPie&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/coordsys.html&quot;&gt;The Coordinate System&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void drawEllipse(com.trolltech.qt.core.QRect r)" doc="/**
&lt;p&gt;Draws the ellipse defined by the given &lt;tt&gt;r&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void drawEllipse(int x, int y, int w, int h)" doc="/**
&lt;p&gt;Draws the ellipse defined by the rectangle beginning at (&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;) with the given &lt;tt&gt;w&lt;/tt&gt; and &lt;tt&gt;h&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void drawImage(com.trolltech.qt.core.QPoint p, com.trolltech.qt.gui.QImage image, com.trolltech.qt.core.QRect sr, com.trolltech.qt.core.Qt.ImageConversionFlags flags)" doc="/**
&lt;p&gt;Draws the rectangular portion &lt;tt&gt;sr&lt;/tt&gt; of the given &lt;tt&gt;image&lt;/tt&gt; with its origin at the given &lt;tt&gt;p&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void drawImage(com.trolltech.qt.core.QPoint p, com.trolltech.qt.gui.QImage image, com.trolltech.qt.core.QRect sr)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPainter.html#drawImage(com.trolltech.qt.core.QRectF, com.trolltech.qt.gui.QImage)&quot;&gt;&lt;tt&gt;drawImage&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;p&lt;/tt&gt;, &lt;tt&gt;image&lt;/tt&gt;, &lt;tt&gt;sr&lt;/tt&gt;, Qt::AutoColor). */"/>
    <method name="public final void drawImage(com.trolltech.qt.core.QPointF p, com.trolltech.qt.gui.QImage image, com.trolltech.qt.core.QRectF sr, com.trolltech.qt.core.Qt.ImageConversionFlags flags)" doc="/**
&lt;p&gt;Draws the rectangular portion &lt;tt&gt;sr&lt;/tt&gt; of the given &lt;tt&gt;image&lt;/tt&gt; with its origin at the given &lt;tt&gt;p&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void drawImage(com.trolltech.qt.core.QPointF p, com.trolltech.qt.gui.QImage image, com.trolltech.qt.core.QRectF sr)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPainter.html#drawImage(com.trolltech.qt.core.QRectF, com.trolltech.qt.gui.QImage)&quot;&gt;&lt;tt&gt;drawImage&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;p&lt;/tt&gt;, &lt;tt&gt;image&lt;/tt&gt;, &lt;tt&gt;sr&lt;/tt&gt;, Qt::AutoColor). */"/>
    <method name="public final void drawImage(com.trolltech.qt.core.QRect r, com.trolltech.qt.gui.QImage image)" doc="/**
&lt;p&gt;Draws the given &lt;tt&gt;image&lt;/tt&gt; into the given &lt;tt&gt;r&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void drawImage(com.trolltech.qt.core.QRectF targetRect, com.trolltech.qt.gui.QImage image, com.trolltech.qt.core.QRectF sourceRect, com.trolltech.qt.core.Qt.ImageConversionFlags flags)" doc="/**
&lt;p&gt;Draws the rectangular portion &lt;tt&gt;sourceRect&lt;/tt&gt; of the given &lt;tt&gt;image&lt;/tt&gt; into the &lt;tt&gt;targetRect&lt;/tt&gt; rectangle in the paint device.&lt;/p&gt;
&lt;p&gt;If the image needs to be modified to fit in a lower-resolution result (e.g&amp;#x2e; converting from 32-bit to 8-bit), use the &lt;tt&gt;flags&lt;/tt&gt; to specify how you would prefer this to happen.&lt;/p&gt;
&lt;p&gt;&lt;table width=&quot;100%&quot; align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;pre&gt;    QRectF target(10.0, 20.0, 80.0, 60.0);
    QRectF source(0.0, 0.0, 70.0, 40.0);
    QImage image(&amp;quot;:/images/myImage.png&amp;quot;);

    QPainter(this);
    painter.drawImage(target, image, source);&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#drawPixmap(com.trolltech.qt.core.QRect, com.trolltech.qt.gui.QPixmap, com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;drawPixmap&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void drawImage(com.trolltech.qt.core.QRectF targetRect, com.trolltech.qt.gui.QImage image, com.trolltech.qt.core.QRectF sourceRect)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPainter.html#drawImage(com.trolltech.qt.core.QRectF, com.trolltech.qt.gui.QImage)&quot;&gt;&lt;tt&gt;drawImage&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;targetRect&lt;/tt&gt;, &lt;tt&gt;image&lt;/tt&gt;, &lt;tt&gt;sourceRect&lt;/tt&gt;, Qt::AutoColor). */"/>
    <method name="public final void drawImage(int x, int y, com.trolltech.qt.gui.QImage image, int sx, int sy, int sw, int sh, com.trolltech.qt.core.Qt.ImageConversionFlags flags)" doc="/**
&lt;p&gt;Draws an image at (&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;) by copying a part of &lt;tt&gt;image&lt;/tt&gt; into the paint device.&lt;/p&gt;
&lt;p&gt;(&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;) specifies the top-left point in the paint device that is to be drawn onto. (&lt;tt&gt;sx&lt;/tt&gt;, &lt;tt&gt;sy&lt;/tt&gt;) specifies the top-left point in &lt;tt&gt;image&lt;/tt&gt; that is to be drawn. The default is (0, 0).&lt;/p&gt;
&lt;p&gt;(&lt;tt&gt;sw&lt;/tt&gt;, &lt;tt&gt;sh&lt;/tt&gt;) specifies the size of the image that is to be drawn. The default, (0, 0) (and negative) means all the way to the bottom-right of the image.&lt;/p&gt;
 */"/>
    <method name="public final void drawImage(int x, int y, com.trolltech.qt.gui.QImage image, int sx, int sy, int sw, int sh)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPainter.html#drawImage(com.trolltech.qt.core.QRectF, com.trolltech.qt.gui.QImage)&quot;&gt;&lt;tt&gt;drawImage&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;, &lt;tt&gt;image&lt;/tt&gt;, &lt;tt&gt;sx&lt;/tt&gt;, &lt;tt&gt;sy&lt;/tt&gt;, &lt;tt&gt;sw&lt;/tt&gt;, &lt;tt&gt;sh&lt;/tt&gt;, Qt::AutoColor). */"/>
    <method name="public final void drawImage(int x, int y, com.trolltech.qt.gui.QImage image, int sx, int sy, int sw)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPainter.html#drawImage(com.trolltech.qt.core.QRectF, com.trolltech.qt.gui.QImage)&quot;&gt;&lt;tt&gt;drawImage&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;, &lt;tt&gt;image&lt;/tt&gt;, &lt;tt&gt;sx&lt;/tt&gt;, &lt;tt&gt;sy&lt;/tt&gt;, &lt;tt&gt;sw&lt;/tt&gt;, -1, Qt::AutoColor). */"/>
    <method name="public final void drawImage(int x, int y, com.trolltech.qt.gui.QImage image, int sx, int sy)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPainter.html#drawImage(com.trolltech.qt.core.QRectF, com.trolltech.qt.gui.QImage)&quot;&gt;&lt;tt&gt;drawImage&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;, &lt;tt&gt;image&lt;/tt&gt;, &lt;tt&gt;sx&lt;/tt&gt;, &lt;tt&gt;sy&lt;/tt&gt;, -1, -1, Qt::AutoColor). */"/>
    <method name="public final void drawImage(int x, int y, com.trolltech.qt.gui.QImage image, int sx)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPainter.html#drawImage(com.trolltech.qt.core.QRectF, com.trolltech.qt.gui.QImage)&quot;&gt;&lt;tt&gt;drawImage&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;, &lt;tt&gt;image&lt;/tt&gt;, &lt;tt&gt;sx&lt;/tt&gt;, 0, -1, -1, Qt::AutoColor). */"/>
    <method name="public final void drawImage(int x, int y, com.trolltech.qt.gui.QImage image)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPainter.html#drawImage(com.trolltech.qt.core.QRectF, com.trolltech.qt.gui.QImage)&quot;&gt;&lt;tt&gt;drawImage&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;, &lt;tt&gt;image&lt;/tt&gt;, 0, 0, -1, -1, Qt::AutoColor). */"/>
    <method name="public final void drawImage(com.trolltech.qt.core.QPointF p, com.trolltech.qt.gui.QImage image)" doc="/**
&lt;p&gt;Draws the given &lt;tt&gt;image&lt;/tt&gt; at the given &lt;tt&gt;p&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void drawImage(com.trolltech.qt.core.QPoint p, com.trolltech.qt.gui.QImage image)" doc="/**
&lt;p&gt;Draws the given &lt;tt&gt;image&lt;/tt&gt; at the given &lt;tt&gt;p&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void drawImage(com.trolltech.qt.core.QRect targetRect, com.trolltech.qt.gui.QImage image, com.trolltech.qt.core.QRect sourceRect, com.trolltech.qt.core.Qt.ImageConversionFlags flags)" doc="/**
&lt;p&gt;Draws the rectangular portion &lt;tt&gt;sourceRect&lt;/tt&gt; of the given &lt;tt&gt;image&lt;/tt&gt; into the &lt;tt&gt;targetRect&lt;/tt&gt; rectangle in the paint device.&lt;/p&gt;
 */"/>
    <method name="public final void drawImage(com.trolltech.qt.core.QRect targetRect, com.trolltech.qt.gui.QImage image, com.trolltech.qt.core.QRect sourceRect)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPainter.html#drawImage(com.trolltech.qt.core.QRectF, com.trolltech.qt.gui.QImage)&quot;&gt;&lt;tt&gt;drawImage&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;targetRect&lt;/tt&gt;, &lt;tt&gt;image&lt;/tt&gt;, &lt;tt&gt;sourceRect&lt;/tt&gt;, Qt::AutoColor). */"/>
    <method name="public final void drawImage(com.trolltech.qt.core.QRectF r, com.trolltech.qt.gui.QImage image)" doc="/**
&lt;p&gt;Draws the given &lt;tt&gt;image&lt;/tt&gt; into the given &lt;tt&gt;r&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void drawLine(com.trolltech.qt.gui.QLine line)" doc="/**
&lt;p&gt;Draws a line defined by &lt;tt&gt;line&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void drawLine(com.trolltech.qt.core.QPoint p1, com.trolltech.qt.core.QPoint p2)" doc="/**
&lt;p&gt;Draws a line from &lt;tt&gt;p1&lt;/tt&gt; to &lt;tt&gt;p2&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void drawLine(com.trolltech.qt.core.QPointF p1, com.trolltech.qt.core.QPointF p2)" doc="/**
&lt;p&gt;Draws a line from &lt;tt&gt;p1&lt;/tt&gt; to &lt;tt&gt;p2&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void drawLine(int x1, int y1, int x2, int y2)" doc="/**
&lt;p&gt;Draws a line from (&lt;tt&gt;x1&lt;/tt&gt;, &lt;tt&gt;y1&lt;/tt&gt;) to (&lt;tt&gt;x2&lt;/tt&gt;, &lt;tt&gt;y2&lt;/tt&gt;) and sets the current pen position to (&lt;tt&gt;x2&lt;/tt&gt;, &lt;tt&gt;y2&lt;/tt&gt;).&lt;/p&gt;
 */"/>
    <method name="public final void drawLine(com.trolltech.qt.gui.QLineF line)" doc="/**
&lt;p&gt;Draws a line defined by &lt;tt&gt;line&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;&lt;table width=&quot;100%&quot; align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qpainter-line.png&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;pre&gt;    QLineF line(10.0, 80.0, 90.0, 20.0);

    QPainter(this);
    painter.drawLine(line);&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#drawLines(java.util.List&lt;com.trolltech.qt.gui.QLine&gt;)&quot;&gt;&lt;tt&gt;drawLines&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainter.html#drawPolyline(com.trolltech.qt.gui.QPolygonF)&quot;&gt;&lt;tt&gt;drawPolyline&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/coordsys.html&quot;&gt;The Coordinate System&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void drawLinesFromPointsF(java.util.List&lt;com.trolltech.qt.core.QPointF&gt; pointPairs)" doc="/**
&lt;p&gt;Draws a line for each pair of points in the vector &lt;tt&gt;pointPairs&lt;/tt&gt; using the current pen. If there is an odd number of points in the array, the last point will be ignored.&lt;/p&gt;
 */"/>
    <method name="public final void drawLinesF(java.util.List&lt;com.trolltech.qt.gui.QLineF&gt; lines)" doc="/**
&lt;p&gt;Draws the set of lines defined by the list &lt;tt&gt;lines&lt;/tt&gt; using the current pen and brush.&lt;/p&gt;
 */"/>
    <method name="public final void drawLines(java.util.List&lt;com.trolltech.qt.gui.QLine&gt; lines)" doc="/**
&lt;p&gt;Draws the set of lines defined by the list &lt;tt&gt;lines&lt;/tt&gt; using the current pen and brush.&lt;/p&gt;
 */"/>
    <method name="public final void drawLinesFromPoints(java.util.List&lt;com.trolltech.qt.core.QPoint&gt; pointPairs)" doc="/**
&lt;p&gt;Draws a line for each pair of points in the vector &lt;tt&gt;pointPairs&lt;/tt&gt; using the current pen.&lt;/p&gt;
 */"/>
    <method name="public final void drawPath(com.trolltech.qt.gui.QPainterPath path)" doc="/**
&lt;p&gt;Draws the given painter &lt;tt&gt;path&lt;/tt&gt; using the current pen for outline and the current brush for filling.&lt;/p&gt;
&lt;p&gt;&lt;table width=&quot;100%&quot; align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qpainter-path.png&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;pre&gt;    QPainterPath path;
    path.moveTo(20, 80);
    path.lineTo(20, 30);
    path.cubicTo(80, 0, 50, 50, 80, 80);

    QPainter painter(this);
    painter.drawPath(path);&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;

@see the Painter Paths example&lt;/tt&gt;
@see the Vector Deformation demo&lt;/tt&gt; */"/>
    <method name="public final void drawPicture(com.trolltech.qt.core.QPoint p, com.trolltech.qt.gui.QPicture picture)" doc="/**
&lt;p&gt;Replays the given &lt;tt&gt;picture&lt;/tt&gt; at the given &lt;tt&gt;p&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void drawPicture(com.trolltech.qt.core.QPointF p, com.trolltech.qt.gui.QPicture picture)" doc="/**
&lt;p&gt;Replays the given &lt;tt&gt;picture&lt;/tt&gt; at the given &lt;tt&gt;p&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QPicture.html&quot;&gt;&lt;tt&gt;QPicture&lt;/tt&gt;&lt;/a&gt; class is a paint device that records and replays &lt;a href=&quot;QPainter.html#QPainter(com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;QPainter&lt;/tt&gt;&lt;/a&gt; commands. A picture serializes the painter commands to an IO device in a platform-independent format. Everything that can be painted on a widget or pixmap can also be stored in a picture.&lt;/p&gt;
&lt;p&gt;This function does exactly the same as QPicture::play() when called with &lt;tt&gt;p&lt;/tt&gt; = &lt;a href=&quot;%2E%2E/core/QPoint.html&quot;&gt;&lt;tt&gt;QPoint&lt;/tt&gt;&lt;/a&gt;(0, 0).&lt;/p&gt;
&lt;p&gt;&lt;table width=&quot;100%&quot; align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;pre&gt;    QPicture picture;
    QPointF point(10.0, 20.0)
    picture.load(&amp;quot;drawing.pic&amp;quot;);

    QPainter painter(this);
    painter.drawPicture(0, 0, picture);&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;

@see &lt;tt&gt;QPicture::play&lt;/tt&gt; */"/>
    <method name="public final void drawPicture(int x, int y, com.trolltech.qt.gui.QPicture picture)" doc="/**
&lt;p&gt;Draws the given &lt;tt&gt;picture&lt;/tt&gt; at point (&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;).&lt;/p&gt;
 */"/>
    <method name="public final void drawPie(int x, int y, int w, int h, int a, int alen)" doc="/**
&lt;p&gt;Draws the pie defined by the rectangle beginning at (&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;) with the specified &lt;tt&gt;w&lt;/tt&gt; and &lt;tt&gt;h&lt;/tt&gt;, and the given &lt;tt&gt;a&lt;/tt&gt; and &lt;tt&gt;alen&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void drawPie(com.trolltech.qt.core.QRect arg__1, int a, int alen)" doc="/**
&lt;p&gt;Draws a pie defined by the given &lt;tt&gt;arg__1&lt;/tt&gt;, &lt;tt&gt;a&lt;/tt&gt; and and &lt;tt&gt;alen&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void drawPie(com.trolltech.qt.core.QRectF rect, int a, int alen)" doc="/**
&lt;p&gt;Draws a pie defined by the given &lt;tt&gt;rect&lt;/tt&gt;, &lt;tt&gt;a&lt;/tt&gt; and and &lt;tt&gt;alen&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The pie is filled with the current &lt;a href=&quot;QPainter.html#brush()&quot;&gt;&lt;tt&gt;brush&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The startAngle and spanAngle must be specified in 1/16th of a degree, i.e&amp;#x2e; a full circle equals 5760 (16 * 360). Positive values for the angles mean counter-clockwise while negative values mean the clockwise direction. Zero degrees is at the 3 o'clock position.&lt;/p&gt;
&lt;p&gt;&lt;table width=&quot;100%&quot; align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qpainter-pie.png&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;pre&gt;    QRectF rectangle(10.0, 20.0, 80.0, 60.0);
    int startAngle = 30 * 16;
    int spanAngle = 120 * 16;

    QPainter painter(this);
    painter.drawPie(rectangle, startAngle, spanAngle);&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#drawEllipse(int, int, int, int)&quot;&gt;&lt;tt&gt;drawEllipse&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainter.html#drawChord(com.trolltech.qt.core.QRectF, int, int)&quot;&gt;&lt;tt&gt;drawChord&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/coordsys.html&quot;&gt;The Coordinate System&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void drawPixmap(com.trolltech.qt.core.QRect r, com.trolltech.qt.gui.QPixmap pm)" doc="/**
&lt;p&gt;Draws the given &lt;tt&gt;pm&lt;/tt&gt; into the given &lt;tt&gt;r&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void drawPixmap(com.trolltech.qt.core.QPoint p, com.trolltech.qt.gui.QPixmap pm, com.trolltech.qt.core.QRect sr)" doc="/**
&lt;p&gt;Draws the rectangular portion &lt;tt&gt;sr&lt;/tt&gt; of the given &lt;tt&gt;pm&lt;/tt&gt; with its origin at the given &lt;tt&gt;p&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void drawPixmap(com.trolltech.qt.core.QRectF targetRect, com.trolltech.qt.gui.QPixmap pixmap, com.trolltech.qt.core.QRectF sourceRect)" doc="/**
&lt;p&gt;Draws the rectangular portion &lt;tt&gt;sourceRect&lt;/tt&gt; of the given &lt;tt&gt;pixmap&lt;/tt&gt; into the given &lt;tt&gt;targetRect&lt;/tt&gt; in the paint device.&lt;/p&gt;
&lt;p&gt;&lt;table width=&quot;100%&quot; align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;pre&gt;    QRectF target(10.0, 20.0, 80.0, 60.0);
    QRectF source(0.0, 0.0, 70.0, 40.0);
    QPixmap pixmap(&amp;quot;:myPixmap.png&amp;quot;);

    QPainter(this);
    painter.drawPixmap(target, image, source);&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;pixmap&lt;/tt&gt; is a &lt;a href=&quot;QBitmap.html&quot;&gt;&lt;tt&gt;QBitmap&lt;/tt&gt;&lt;/a&gt; it is drawn with the bits that are &amp;quot;set&amp;quot; using the pens color. If &lt;a href=&quot;QPainter.html#backgroundMode()&quot;&gt;&lt;tt&gt;backgroundMode&lt;/tt&gt;&lt;/a&gt; is Qt::OpaqueMode, the &amp;quot;unset&amp;quot; bits are drawn using the color of the background brush; if &lt;a href=&quot;QPainter.html#backgroundMode()&quot;&gt;&lt;tt&gt;backgroundMode&lt;/tt&gt;&lt;/a&gt; is Qt::TransparentMode, the &amp;quot;unset&amp;quot; bits are transparent. Drawing bitmaps with gradient or texture colors is not supported.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#drawImage(com.trolltech.qt.core.QRectF, com.trolltech.qt.gui.QImage)&quot;&gt;&lt;tt&gt;drawImage&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void drawPixmap(com.trolltech.qt.core.QPointF p, com.trolltech.qt.gui.QPixmap pm)" doc="/**
&lt;p&gt;Draws the given &lt;tt&gt;pm&lt;/tt&gt; with its origin at the given &lt;tt&gt;p&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void drawPixmap(int x, int y, int w, int h, com.trolltech.qt.gui.QPixmap pm, int sx, int sy, int sw, int sh)" doc="/**
&lt;p&gt;Draws the rectangular portion with the origin (&lt;tt&gt;sx&lt;/tt&gt;, &lt;tt&gt;sy&lt;/tt&gt;), width &lt;tt&gt;sw&lt;/tt&gt; and height &lt;tt&gt;sh&lt;/tt&gt;, of the given &lt;tt&gt;pm&lt;/tt&gt; , at the point (&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;), with a width of &lt;tt&gt;w&lt;/tt&gt; and a height of &lt;tt&gt;h&lt;/tt&gt;. If sw or sh are equal to zero the width/height of the pixmap is used and adjusted by the offset sx/sy;&lt;/p&gt;
 */"/>
    <method name="public final void drawPixmap(int x, int y, com.trolltech.qt.gui.QPixmap pm)" doc="/**
&lt;p&gt;Draws the given &lt;tt&gt;pm&lt;/tt&gt; at position (&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;).&lt;/p&gt;
 */"/>
    <method name="public final void drawPixmap(com.trolltech.qt.core.QPoint p, com.trolltech.qt.gui.QPixmap pm)" doc="/**
&lt;p&gt;Draws the given &lt;tt&gt;pm&lt;/tt&gt; with its origin at the given &lt;tt&gt;p&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void drawPixmap(com.trolltech.qt.core.QPointF p, com.trolltech.qt.gui.QPixmap pm, com.trolltech.qt.core.QRectF sr)" doc="/**
&lt;p&gt;Draws the rectangular portion &lt;tt&gt;sr&lt;/tt&gt; of the given &lt;tt&gt;pm&lt;/tt&gt; with its origin at the given &lt;tt&gt;p&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void drawPixmap(int x, int y, int w, int h, com.trolltech.qt.gui.QPixmap pm)" doc="/**
&lt;p&gt;Draws the &lt;tt&gt;pm&lt;/tt&gt; into the rectangle at position (&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;) with the given &lt;tt&gt;w&lt;/tt&gt; and &lt;tt&gt;h&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void drawPixmap(int x, int y, com.trolltech.qt.gui.QPixmap pm, int sx, int sy, int sw, int sh)" doc="/**
&lt;p&gt;Draws a pixmap at (&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;) by copying a part of the given &lt;tt&gt;pm&lt;/tt&gt; into the paint device.&lt;/p&gt;
&lt;p&gt;(&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;) specifies the top-left point in the paint device that is to be drawn onto. (&lt;tt&gt;sx&lt;/tt&gt;, &lt;tt&gt;sy&lt;/tt&gt;) specifies the top-left point in &lt;tt&gt;pm&lt;/tt&gt; that is to be drawn. The default is (0, 0).&lt;/p&gt;
&lt;p&gt;(&lt;tt&gt;sw&lt;/tt&gt;, &lt;tt&gt;sh&lt;/tt&gt;) specifies the size of the pixmap that is to be drawn. The default, (0, 0) (and negative) means all the way to the bottom-right of the pixmap.&lt;/p&gt;
 */"/>
    <method name="public final void drawPixmap(com.trolltech.qt.core.QRect targetRect, com.trolltech.qt.gui.QPixmap pixmap, com.trolltech.qt.core.QRect sourceRect)" doc="/**
&lt;p&gt;Draws the rectangular portion &lt;tt&gt;sourceRect&lt;/tt&gt; of the given &lt;tt&gt;pixmap&lt;/tt&gt; into the given &lt;tt&gt;targetRect&lt;/tt&gt; in the paint device.&lt;/p&gt;
 */"/>
    <method name="public final void drawPoint(com.trolltech.qt.core.QPointF pt)" doc="/**
&lt;p&gt;Draws a single point at the given &lt;tt&gt;pt&lt;/tt&gt; using the current pen's color.&lt;/p&gt;

@see &lt;a href=&quot;%2E%2E/coordsys.html&quot;&gt;The Coordinate System&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void drawPoint(int x, int y)" doc="/**
&lt;p&gt;Draws a single point at position (&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;).&lt;/p&gt;
 */"/>
    <method name="public final void drawPoint(com.trolltech.qt.core.QPoint p)" doc="/**
&lt;p&gt;Draws a single point at the given &lt;tt&gt;p&lt;/tt&gt; using the current pen's color.&lt;/p&gt;
 */"/>
    <method name="public final void drawPoints(com.trolltech.qt.gui.QPolygon points)" doc="/**
&lt;p&gt;Draws the points in the vector &lt;tt&gt;points&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void drawPoints(com.trolltech.qt.gui.QPolygonF points)" doc="/**
&lt;p&gt;Draws the points in the vector &lt;tt&gt;points&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void drawPolygon(com.trolltech.qt.gui.QPolygonF polygon, com.trolltech.qt.core.Qt.FillRule fillRule)" doc="/**
&lt;p&gt;Draws the polygon defined by the given &lt;tt&gt;polygon&lt;/tt&gt; using the fill rule &lt;tt&gt;fillRule&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void drawPolygon(com.trolltech.qt.gui.QPolygonF polygon)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPainter.html#drawPolygon(com.trolltech.qt.gui.QPolygon, com.trolltech.qt.core.Qt.FillRule)&quot;&gt;&lt;tt&gt;drawPolygon&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;polygon&lt;/tt&gt;, Qt::OddEvenFill). */"/>
    <method name="public final void drawPolygon(com.trolltech.qt.gui.QPolygon polygon, com.trolltech.qt.core.Qt.FillRule fillRule)" doc="/**
&lt;p&gt;Draws the polygon defined by the given &lt;tt&gt;polygon&lt;/tt&gt; using the fill rule &lt;tt&gt;fillRule&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void drawPolygon(com.trolltech.qt.gui.QPolygon polygon)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPainter.html#drawPolygon(com.trolltech.qt.gui.QPolygon, com.trolltech.qt.core.Qt.FillRule)&quot;&gt;&lt;tt&gt;drawPolygon&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;polygon&lt;/tt&gt;, Qt::OddEvenFill). */"/>
    <method name="public final void drawPolyline(com.trolltech.qt.gui.QPolygon polygon)" doc="/**
&lt;p&gt;Draws the polyline defined by the given &lt;tt&gt;polygon&lt;/tt&gt; using the current pen.&lt;/p&gt;
 */"/>
    <method name="public final void drawPolyline(com.trolltech.qt.gui.QPolygonF polyline)" doc="/**
&lt;p&gt;Draws the polyline defined by the given &lt;tt&gt;polyline&lt;/tt&gt; using the current pen.&lt;/p&gt;
 */"/>
    <method name="public final void drawRect(int x1, int y1, int w, int h)" doc="/**
&lt;p&gt;Draws a rectangle with upper left corner at (&lt;tt&gt;x1&lt;/tt&gt;, &lt;tt&gt;y1&lt;/tt&gt;) and with the given &lt;tt&gt;w&lt;/tt&gt; and &lt;tt&gt;h&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void drawRect(com.trolltech.qt.core.QRectF rect)" doc="/**
&lt;p&gt;Draws the current &lt;tt&gt;rect&lt;/tt&gt; with the current pen and brush.&lt;/p&gt;
&lt;p&gt;A filled rectangle has a size of &lt;tt&gt;rect&lt;/tt&gt;.size(). A stroked rectangle has a size of &lt;tt&gt;rect&lt;/tt&gt;.size() plus the pen width.&lt;/p&gt;
&lt;p&gt;&lt;table width=&quot;100%&quot; align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qpainter-rectangle.png&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;pre&gt;    QRectF rectangle(10.0, 20.0, 80.0, 60.0);

    QPainter painter(this);
    painter.drawRect(rectangle);&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#drawRects(java.util.List&lt;com.trolltech.qt.core.QRect&gt;)&quot;&gt;&lt;tt&gt;drawRects&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainter.html#drawPolygon(com.trolltech.qt.gui.QPolygon, com.trolltech.qt.core.Qt.FillRule)&quot;&gt;&lt;tt&gt;drawPolygon&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/coordsys.html&quot;&gt;The Coordinate System&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void drawRect(com.trolltech.qt.core.QRect rect)" doc="/**
&lt;p&gt;Draws the current &lt;tt&gt;rect&lt;/tt&gt; with the current pen and brush.&lt;/p&gt;
 */"/>
    <method name="public final void drawRects(java.util.List&lt;com.trolltech.qt.core.QRect&gt; rectangles)" doc="/**
&lt;p&gt;Draws the given &lt;tt&gt;rectangles&lt;/tt&gt; using the current pen and brush.&lt;/p&gt;
 */"/>
    <method name="public final void drawRectsF(java.util.List&lt;com.trolltech.qt.core.QRectF&gt; rectangles)" doc="/**
&lt;p&gt;Draws the given &lt;tt&gt;rectangles&lt;/tt&gt; using the current pen and brush.&lt;/p&gt;
 */"/>
    <method name="public final void drawRoundRect(com.trolltech.qt.core.QRect r, int xround, int yround)" doc="/**
&lt;p&gt;Draws the rectangle &lt;tt&gt;r&lt;/tt&gt; with rounded corners.&lt;/p&gt;
 */"/>
    <method name="public final void drawRoundRect(com.trolltech.qt.core.QRect r, int xround)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPainter.html#drawRoundRect(int, int, int, int, int, int)&quot;&gt;&lt;tt&gt;drawRoundRect&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;r&lt;/tt&gt;, &lt;tt&gt;xround&lt;/tt&gt;, 25). */"/>
    <method name="public final void drawRoundRect(com.trolltech.qt.core.QRect r)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPainter.html#drawRoundRect(int, int, int, int, int, int)&quot;&gt;&lt;tt&gt;drawRoundRect&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;r&lt;/tt&gt;, 25, 25). */"/>
    <method name="public final void drawRoundRect(com.trolltech.qt.core.QRectF r, int xround, int yround)" doc="/**
&lt;p&gt;Draws a rectangle &lt;tt&gt;r&lt;/tt&gt; with rounded corners.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;xround&lt;/tt&gt; and &lt;tt&gt;yround&lt;/tt&gt; arguments specify how rounded the corners should be. 0 is angled corners, 99 is maximum roundedness.&lt;/p&gt;
&lt;p&gt;A filled rectangle has a size of r.size(). A stroked rectangle has a size of r.size() plus the pen width.&lt;/p&gt;
&lt;p&gt;&lt;table width=&quot;100%&quot; align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qpainter-roundrect.png&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;pre&gt;    QRectF rectangle(10.0, 20.0, 80.0, 60.0);

    QPainter painter(this);
    painter.drawRoundRect(rectangle);&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#drawRect(com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;drawRect&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPen.html&quot;&gt;&lt;tt&gt;QPen&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void drawRoundRect(com.trolltech.qt.core.QRectF r, int xround)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPainter.html#drawRoundRect(int, int, int, int, int, int)&quot;&gt;&lt;tt&gt;drawRoundRect&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;r&lt;/tt&gt;, &lt;tt&gt;xround&lt;/tt&gt;, 25). */"/>
    <method name="public final void drawRoundRect(com.trolltech.qt.core.QRectF r)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPainter.html#drawRoundRect(int, int, int, int, int, int)&quot;&gt;&lt;tt&gt;drawRoundRect&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;r&lt;/tt&gt;, 25, 25). */"/>
    <method name="public final void drawRoundRect(int x, int y, int w, int h, int arg__5, int arg__6)" doc="/**
&lt;p&gt;Draws the rectangle &lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;, &lt;tt&gt;w&lt;/tt&gt;, &lt;tt&gt;h&lt;/tt&gt; with rounded corners.&lt;/p&gt;
 */"/>
    <method name="public final void drawRoundRect(int x, int y, int w, int h, int arg__5)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPainter.html#drawRoundRect(int, int, int, int, int, int)&quot;&gt;&lt;tt&gt;drawRoundRect&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;, &lt;tt&gt;w&lt;/tt&gt;, &lt;tt&gt;h&lt;/tt&gt;, &lt;tt&gt;arg__5&lt;/tt&gt;, 25). */"/>
    <method name="public final void drawRoundRect(int x, int y, int w, int h)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPainter.html#drawRoundRect(int, int, int, int, int, int)&quot;&gt;&lt;tt&gt;drawRoundRect&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;, &lt;tt&gt;w&lt;/tt&gt;, &lt;tt&gt;h&lt;/tt&gt;, 25, 25). */"/>
    <method name="public final void drawText(com.trolltech.qt.core.QRectF r, java.lang.String text, com.trolltech.qt.gui.QTextOption o)" doc="/**
&lt;p&gt;Draws the given &lt;tt&gt;text&lt;/tt&gt; in the &lt;tt&gt;r&lt;/tt&gt; specified using the &lt;tt&gt;o&lt;/tt&gt; to control its positioning and orientation.&lt;/p&gt;
 */"/>
    <method name="public final void drawText(com.trolltech.qt.core.QRectF r, java.lang.String text)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPainter.html#drawText(com.trolltech.qt.core.QPoint, java.lang.String)&quot;&gt;&lt;tt&gt;drawText&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;r&lt;/tt&gt;, &lt;tt&gt;text&lt;/tt&gt;, QTextOption()). */"/>
    <method name="public final void drawText(int x, int y, java.lang.String s)" doc="/**
&lt;p&gt;Draws the given &lt;tt&gt;s&lt;/tt&gt; at position (&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;), using the painter's currently defined text direction.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Note:&lt;/b&gt; The y-position is used as the baseline of the font.&lt;/p&gt;
 */"/>
    <method name="public final void drawText(com.trolltech.qt.core.QPointF p, java.lang.String s)" doc="/**
&lt;p&gt;Draws the given &lt;tt&gt;s&lt;/tt&gt; with the currently defined text direction, beginning at the given &lt;tt&gt;p&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;This function does not handle the newline character (\n), as it cannot break text into multiple lines, and it cannot display the newline character. Use the QPainter::drawText() overload that takes a rectangle instead if you want to draw multiple lines of text with the newline character, or if you want the text to be wrapped.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Note:&lt;/b&gt; The y-position is used as the baseline of the font.&lt;/p&gt;
 */"/>
    <method name="public final void drawText(com.trolltech.qt.core.QPoint p, java.lang.String s)" doc="/**
&lt;p&gt;Draws the given &lt;tt&gt;s&lt;/tt&gt; with the currently defined text direction, beginning at the given &lt;tt&gt;p&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Note:&lt;/b&gt; The y-position is used as the baseline of the font.&lt;/p&gt;
 */"/>
    <method name="public final void drawTextItem(int x, int y, com.trolltech.qt.gui.QTextItem ti)" doc="/**
&lt;p&gt;&lt;/p&gt;
 */"/>
    <method name="public final void drawTextItem(com.trolltech.qt.core.QPoint p, com.trolltech.qt.gui.QTextItem ti)" doc="/**
&lt;p&gt;&lt;/p&gt;
 */"/>
    <method name="public final void drawTextItem(com.trolltech.qt.core.QPointF p, com.trolltech.qt.gui.QTextItem ti)" doc="/**
&lt;p&gt;&lt;/p&gt;
 */"/>
    <method name="public final void drawTiledPixmap(com.trolltech.qt.core.QRectF rect, com.trolltech.qt.gui.QPixmap pm, com.trolltech.qt.core.QPointF offset)" doc="/**
&lt;p&gt;Draws a tiled &lt;tt&gt;pm&lt;/tt&gt;, inside the given &lt;tt&gt;rect&lt;/tt&gt; with its origin at the given &lt;tt&gt;offset&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Calling &lt;a href=&quot;QPainter.html#drawTiledPixmap(com.trolltech.qt.core.QRect, com.trolltech.qt.gui.QPixmap, com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;drawTiledPixmap&lt;/tt&gt;&lt;/a&gt; is similar to calling &lt;a href=&quot;QPainter.html#drawPixmap(com.trolltech.qt.core.QRect, com.trolltech.qt.gui.QPixmap, com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;drawPixmap&lt;/tt&gt;&lt;/a&gt; several times to fill (tile) an area with a pixmap, but is potentially much more efficient depending on the underlying window system.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#drawPixmap(com.trolltech.qt.core.QRect, com.trolltech.qt.gui.QPixmap, com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;drawPixmap&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void drawTiledPixmap(com.trolltech.qt.core.QRectF rect, com.trolltech.qt.gui.QPixmap pm)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPainter.html#drawTiledPixmap(com.trolltech.qt.core.QRect, com.trolltech.qt.gui.QPixmap, com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;drawTiledPixmap&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;rect&lt;/tt&gt;, &lt;tt&gt;pm&lt;/tt&gt;, QPointF()). */"/>
    <method name="public final void drawTiledPixmap(int x, int y, int w, int h, com.trolltech.qt.gui.QPixmap arg__5, int sx, int sy)" doc="/**
&lt;p&gt;Draws a tiled &lt;tt&gt;arg__5&lt;/tt&gt; in the specified rectangle.&lt;/p&gt;
&lt;p&gt;(&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;) specifies the top-left point in the paint device that is to be drawn onto; with the given &lt;tt&gt;w&lt;/tt&gt; and &lt;tt&gt;h&lt;/tt&gt;. (&lt;tt&gt;sx&lt;/tt&gt;, &lt;tt&gt;sy&lt;/tt&gt;) specifies the top-left point in the &lt;tt&gt;arg__5&lt;/tt&gt; that is to be drawn; this defaults to (0, 0).&lt;/p&gt;
 */"/>
    <method name="public final void drawTiledPixmap(int x, int y, int w, int h, com.trolltech.qt.gui.QPixmap arg__5, int sx)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPainter.html#drawTiledPixmap(com.trolltech.qt.core.QRect, com.trolltech.qt.gui.QPixmap, com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;drawTiledPixmap&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;, &lt;tt&gt;w&lt;/tt&gt;, &lt;tt&gt;h&lt;/tt&gt;, &lt;tt&gt;arg__5&lt;/tt&gt;, &lt;tt&gt;sx&lt;/tt&gt;, 0). */"/>
    <method name="public final void drawTiledPixmap(int x, int y, int w, int h, com.trolltech.qt.gui.QPixmap arg__5)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPainter.html#drawTiledPixmap(com.trolltech.qt.core.QRect, com.trolltech.qt.gui.QPixmap, com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;drawTiledPixmap&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;, &lt;tt&gt;w&lt;/tt&gt;, &lt;tt&gt;h&lt;/tt&gt;, &lt;tt&gt;arg__5&lt;/tt&gt;, 0, 0). */"/>
    <method name="public final void drawTiledPixmap(com.trolltech.qt.core.QRect arg__1, com.trolltech.qt.gui.QPixmap arg__2, com.trolltech.qt.core.QPoint arg__3)" doc="/**
&lt;p&gt;Draws a tiled &lt;tt&gt;arg__2&lt;/tt&gt;, inside the given &lt;tt&gt;arg__1&lt;/tt&gt; with its origin at the given &lt;tt&gt;arg__3&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void drawTiledPixmap(com.trolltech.qt.core.QRect arg__1, com.trolltech.qt.gui.QPixmap arg__2)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPainter.html#drawTiledPixmap(com.trolltech.qt.core.QRect, com.trolltech.qt.gui.QPixmap, com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;drawTiledPixmap&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;arg__1&lt;/tt&gt;, &lt;tt&gt;arg__2&lt;/tt&gt;, QPoint()). */"/>
    <method name="public final boolean end()" doc="/**
&lt;p&gt;Ends painting. Any resources used while painting are released. You don't normally need to call this since it is called by the destructor.&lt;/p&gt;
&lt;p&gt;Returns true if the painter is no longer active; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#begin(com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;begin&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainter.html#isActive()&quot;&gt;&lt;tt&gt;isActive&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void eraseRect(int x, int y, int w, int h)" doc="/**
&lt;p&gt;Erases the area inside the rectangle beginning at (&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;) with the given &lt;tt&gt;w&lt;/tt&gt; and &lt;tt&gt;h&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void eraseRect(com.trolltech.qt.core.QRectF arg__1)" doc="/**
&lt;p&gt;Erases the area inside the given &lt;tt&gt;arg__1&lt;/tt&gt;. Equivalent to calling&lt;/p&gt;
&lt;pre&gt;    fillRect(rectangle, background()).&lt;/pre&gt;

@see &lt;a href=&quot;QPainter.html#fillRect(com.trolltech.qt.core.QRectF, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;fillRect&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void eraseRect(com.trolltech.qt.core.QRect arg__1)" doc="/**
&lt;p&gt;Erases the area inside the given &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void fillPath(com.trolltech.qt.gui.QPainterPath path, com.trolltech.qt.gui.QBrush brush)" doc="/**
&lt;p&gt;Fills the given &lt;tt&gt;path&lt;/tt&gt; using the given &lt;tt&gt;brush&lt;/tt&gt;. The outline is not drawn.&lt;/p&gt;
&lt;p&gt;Alternatively, you can specify a &lt;a href=&quot;QColor.html&quot;&gt;&lt;tt&gt;QColor&lt;/tt&gt;&lt;/a&gt; instead of a &lt;a href=&quot;QBrush.html&quot;&gt;&lt;tt&gt;QBrush&lt;/tt&gt;&lt;/a&gt;; the &lt;a href=&quot;QBrush.html&quot;&gt;&lt;tt&gt;QBrush&lt;/tt&gt;&lt;/a&gt; constructor (taking a &lt;a href=&quot;QColor.html&quot;&gt;&lt;tt&gt;QColor&lt;/tt&gt;&lt;/a&gt; argument) will automatically create a solid pattern brush.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#drawPath(com.trolltech.qt.gui.QPainterPath)&quot;&gt;&lt;tt&gt;drawPath&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void fillRect(com.trolltech.qt.core.QRect arg__1, com.trolltech.qt.gui.QBrush arg__2)" doc="/**
&lt;p&gt;Fills the given &lt;tt&gt;arg__1&lt;/tt&gt; with the given &lt;tt&gt;arg__2&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void fillRect(int x, int y, int w, int h, com.trolltech.qt.gui.QBrush arg__5)" doc="/**
&lt;p&gt;Fills the rectangle beginning at (&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;) with the given &lt;tt&gt;w&lt;/tt&gt; and &lt;tt&gt;h&lt;/tt&gt;, using the given &lt;tt&gt;arg__5&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void fillRect(com.trolltech.qt.core.QRectF arg__1, com.trolltech.qt.gui.QBrush arg__2)" doc="/**
&lt;p&gt;Fills the given &lt;tt&gt;arg__1&lt;/tt&gt; with the given &lt;tt&gt;arg__2&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Alternatively, you can specify a &lt;a href=&quot;QColor.html&quot;&gt;&lt;tt&gt;QColor&lt;/tt&gt;&lt;/a&gt; instead of a &lt;a href=&quot;QBrush.html&quot;&gt;&lt;tt&gt;QBrush&lt;/tt&gt;&lt;/a&gt;; the &lt;a href=&quot;QBrush.html&quot;&gt;&lt;tt&gt;QBrush&lt;/tt&gt;&lt;/a&gt; constructor (taking a &lt;a href=&quot;QColor.html&quot;&gt;&lt;tt&gt;QColor&lt;/tt&gt;&lt;/a&gt; argument) will automatically create a solid pattern brush.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#drawRect(com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;drawRect&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QFont font()" doc="/**
&lt;p&gt;Returns the currently set font used for drawing text.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#setFont(com.trolltech.qt.gui.QFont)&quot;&gt;&lt;tt&gt;setFont&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainter.html#drawText(com.trolltech.qt.core.QPoint, java.lang.String)&quot;&gt;&lt;tt&gt;drawText&lt;/tt&gt;&lt;/a&gt;
@see Settings&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QFontInfo fontInfo()" doc="/**
&lt;p&gt;Returns the font info for the painter if the painter is active. Otherwise, the return value is undefined.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#font()&quot;&gt;&lt;tt&gt;font&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainter.html#isActive()&quot;&gt;&lt;tt&gt;isActive&lt;/tt&gt;&lt;/a&gt;
@see Settings&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QFontMetrics fontMetrics()" doc="/**
&lt;p&gt;Returns the font metrics for the painter if the painter is active. Otherwise, the return value is undefined.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#font()&quot;&gt;&lt;tt&gt;font&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainter.html#isActive()&quot;&gt;&lt;tt&gt;isActive&lt;/tt&gt;&lt;/a&gt;
@see Settings&lt;/tt&gt; */"/>
    <method name="public final boolean hasClipping()" doc="/**
&lt;p&gt;Returns true if clipping has been set; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#setClipping(boolean)&quot;&gt;&lt;tt&gt;setClipping&lt;/tt&gt;&lt;/a&gt;
@see Clipping&lt;/tt&gt; */"/>
    <method name="public final void initFrom(com.trolltech.qt.gui.QWidget widget)" doc="/**
&lt;p&gt;Initializes the painters pen, background and font to the same as the given &lt;tt&gt;widget&lt;/tt&gt;. Call this function after &lt;a href=&quot;QPainter.html#begin(com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;begin&lt;/tt&gt;&lt;/a&gt; while the painter is active.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#begin(com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;begin&lt;/tt&gt;&lt;/a&gt;
@see Settings&lt;/tt&gt; */"/>
    <method name="public final boolean isActive()" doc="/**
&lt;p&gt;Returns true if &lt;a href=&quot;QPainter.html#begin(com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;begin&lt;/tt&gt;&lt;/a&gt; has been called and &lt;a href=&quot;QPainter.html#end()&quot;&gt;&lt;tt&gt;end&lt;/tt&gt;&lt;/a&gt; has not yet been called; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#begin(com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;begin&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QPaintDevice::paintingActive&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.core.Qt.LayoutDirection layoutDirection()" doc="/**
&lt;p&gt;Returns the layout direction used by the painter when drawing text.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#setLayoutDirection(com.trolltech.qt.core.Qt.LayoutDirection)&quot;&gt;&lt;tt&gt;setLayoutDirection&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainter.html#drawText(com.trolltech.qt.core.QPoint, java.lang.String)&quot;&gt;&lt;tt&gt;drawText&lt;/tt&gt;&lt;/a&gt;
@see Settings&lt;/tt&gt; */"/>
    <method name="public final double opacity()" doc="/**
&lt;p&gt;Returns the opacity of the painter. The default value is 1.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#setOpacity(double)&quot;&gt;&lt;tt&gt;setOpacity&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QPaintEngine paintEngine()" doc="/**
&lt;p&gt;Returns the paint engine that the painter is currently operating on if the painter is active; otherwise 0.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#isActive()&quot;&gt;&lt;tt&gt;isActive&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QPen pen()" doc="/**
&lt;p&gt;Returns the painter's current pen.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#setPen(com.trolltech.qt.core.Qt.PenStyle)&quot;&gt;&lt;tt&gt;setPen&lt;/tt&gt;&lt;/a&gt;
@see Settings&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QPainter.RenderHints renderHints()" doc="/**
&lt;p&gt;Returns a flag that specifies the rendering hints that are set for this painter.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#setRenderHints(com.trolltech.qt.gui.QPainter.RenderHints, boolean)&quot;&gt;&lt;tt&gt;setRenderHints&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainter.html#testRenderHint(com.trolltech.qt.gui.QPainter.RenderHint)&quot;&gt;&lt;tt&gt;testRenderHint&lt;/tt&gt;&lt;/a&gt;
@see Rendering Quality&lt;/tt&gt; */"/>
    <method name="public final void resetMatrix()" doc="/**
&lt;p&gt;Resets any transformations that were made using &lt;a href=&quot;QPainter.html#translate(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;translate&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPainter.html#scale(double, double)&quot;&gt;&lt;tt&gt;scale&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPainter.html#shear(double, double)&quot;&gt;&lt;tt&gt;shear&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPainter.html#rotate(double)&quot;&gt;&lt;tt&gt;rotate&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPainter.html#setWorldMatrix(com.trolltech.qt.gui.QMatrix, boolean)&quot;&gt;&lt;tt&gt;setWorldMatrix&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPainter.html#setViewport(com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;setViewport&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QPainter.html#setWindow(com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;setWindow&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;It is advisable to use &lt;a href=&quot;QPainter.html#resetTransform()&quot;&gt;&lt;tt&gt;resetTransform&lt;/tt&gt;&lt;/a&gt; instead of this function to preserve the properties of perspective transformations.&lt;/p&gt;

@see Coordinate Transformations&lt;/tt&gt; */"/>
    <method name="public final void resetTransform()" doc="/**
&lt;p&gt;Resets any transformations that were made using &lt;a href=&quot;QPainter.html#translate(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;translate&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPainter.html#scale(double, double)&quot;&gt;&lt;tt&gt;scale&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPainter.html#shear(double, double)&quot;&gt;&lt;tt&gt;shear&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPainter.html#rotate(double)&quot;&gt;&lt;tt&gt;rotate&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPainter.html#setWorldTransform(com.trolltech.qt.gui.QTransform, boolean)&quot;&gt;&lt;tt&gt;setWorldTransform&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPainter.html#setViewport(com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;setViewport&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QPainter.html#setWindow(com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;setWindow&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#coordinate-transformations&quot;&gt;Coordinate Transformations&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void restore()" doc="/**
&lt;p&gt;Restores the current painter state (pops a saved state off the stack).&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#save()&quot;&gt;&lt;tt&gt;save&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void rotate(double a)" doc="/**
&lt;p&gt;Rotates the coordinate system the given &lt;tt&gt;a&lt;/tt&gt; clockwise.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#setWorldMatrix(com.trolltech.qt.gui.QMatrix, boolean)&quot;&gt;&lt;tt&gt;setWorldMatrix&lt;/tt&gt;&lt;/a&gt;
@see Coordinate Transformations&lt;/tt&gt; */"/>
    <method name="public final void save()" doc="/**
&lt;p&gt;Saves the current painter state (pushes the state onto a stack). A &lt;a href=&quot;QPainter.html#save()&quot;&gt;&lt;tt&gt;save&lt;/tt&gt;&lt;/a&gt; must be followed by a corresponding &lt;a href=&quot;QPainter.html#restore()&quot;&gt;&lt;tt&gt;restore&lt;/tt&gt;&lt;/a&gt;; the &lt;a href=&quot;QPainter.html#end()&quot;&gt;&lt;tt&gt;end&lt;/tt&gt;&lt;/a&gt; function unwinds the stack.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#restore()&quot;&gt;&lt;tt&gt;restore&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void scale(double sx, double sy)" doc="/**
&lt;p&gt;Scales the coordinate system by (&lt;tt&gt;sx&lt;/tt&gt;, &lt;tt&gt;sy&lt;/tt&gt;).&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#setWorldMatrix(com.trolltech.qt.gui.QMatrix, boolean)&quot;&gt;&lt;tt&gt;setWorldMatrix&lt;/tt&gt;&lt;/a&gt;
@see Coordinate Transformations&lt;/tt&gt; */"/>
    <method name="public final void setBackground(com.trolltech.qt.gui.QBrush bg)" doc="/**
&lt;p&gt;Sets the background brush of the painter to the given &lt;tt&gt;bg&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The background brush is the brush that is filled in when drawing opaque text, stippled lines and bitmaps. The background brush has no effect in transparent background mode (which is the default).&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#background()&quot;&gt;&lt;tt&gt;background&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainter.html#setBackgroundMode(com.trolltech.qt.core.Qt.BGMode)&quot;&gt;&lt;tt&gt;setBackgroundMode&lt;/tt&gt;&lt;/a&gt;
@see Settings&lt;/tt&gt; */"/>
    <method name="public final void setBackgroundMode(com.trolltech.qt.core.Qt.BGMode mode)" doc="/**
&lt;p&gt;Sets the background mode of the painter to the given &lt;tt&gt;mode&lt;/tt&gt;&lt;/p&gt;
&lt;p&gt;Qt::TransparentMode (the default) draws stippled lines and text without setting the background pixels. Qt::OpaqueMode fills these space with the current background color.&lt;/p&gt;
&lt;p&gt;Note that in order to draw a bitmap or pixmap transparently, you must use QPixmap::setMask().&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#backgroundMode()&quot;&gt;&lt;tt&gt;backgroundMode&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainter.html#setBackground(com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;setBackground&lt;/tt&gt;&lt;/a&gt;
@see Settings&lt;/tt&gt; */"/>
    <method name="public final void setBrush(com.trolltech.qt.gui.QBrush brush)" doc="/**
&lt;p&gt;Sets the painter's brush to the given &lt;tt&gt;brush&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The painter's brush defines how shapes are filled.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#brush()&quot;&gt;&lt;tt&gt;brush&lt;/tt&gt;&lt;/a&gt;
@see Settings&lt;/tt&gt; */"/>
    <method name="public final void setBrush(com.trolltech.qt.core.Qt.BrushStyle style)" doc="/**
&lt;p&gt;Sets the painter's brush to black color and the specified &lt;tt&gt;style&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#brush()&quot;&gt;&lt;tt&gt;brush&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setBrushOrigin(com.trolltech.qt.core.QPoint arg__1)" doc="/**
&lt;p&gt;Sets the brush's origin to the given &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void setBrushOrigin(int x, int y)" doc="/**
&lt;p&gt;Sets the brush's origin to point (&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;).&lt;/p&gt;
 */"/>
    <method name="public final void setBrushOrigin(com.trolltech.qt.core.QPointF arg__1)" doc="/**
&lt;p&gt;Sets the brush origin to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The brush origin specifies the (0, 0) coordinate of the painter's brush. This setting only applies to pattern brushes and pixmap brushes.&lt;/p&gt;
&lt;p&gt;Note that while the &lt;a href=&quot;QPainter.html#brushOrigin()&quot;&gt;&lt;tt&gt;brushOrigin&lt;/tt&gt;&lt;/a&gt; was necessary to adopt the parent's background for a widget in Qt 3, this is no longer the case since the Qt 4 painter doesn't paint the background unless you explicitly tell it to do so by setting the widget's autoFillBackground property to true.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#brushOrigin()&quot;&gt;&lt;tt&gt;brushOrigin&lt;/tt&gt;&lt;/a&gt;
@see Settings&lt;/tt&gt; */"/>
    <method name="public final void setClipPath(com.trolltech.qt.gui.QPainterPath path, com.trolltech.qt.core.Qt.ClipOperation op)" doc="/**
&lt;p&gt;Enables clipping, and sets the clip path for the painter to the given &lt;tt&gt;path&lt;/tt&gt;, with the clip &lt;tt&gt;op&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Note that the clip path is specified in logical (painter) coordinates.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#clipPath()&quot;&gt;&lt;tt&gt;clipPath&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainter.html#clipRegion()&quot;&gt;&lt;tt&gt;clipRegion&lt;/tt&gt;&lt;/a&gt;
@see Clipping&lt;/tt&gt; */"/>
    <method name="public final void setClipPath(com.trolltech.qt.gui.QPainterPath path)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPainter.html#setClipPath(com.trolltech.qt.gui.QPainterPath, com.trolltech.qt.core.Qt.ClipOperation)&quot;&gt;&lt;tt&gt;setClipPath&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;path&lt;/tt&gt;, Qt::ReplaceClip). */"/>
    <method name="public final void setClipRect(com.trolltech.qt.core.QRectF arg__1, com.trolltech.qt.core.Qt.ClipOperation op)" doc="/**
&lt;p&gt;Enables clipping, and sets the clip region to the given &lt;tt&gt;arg__1&lt;/tt&gt; using the given clip &lt;tt&gt;op&lt;/tt&gt;. The default operation is to replace the current clip rectangle.&lt;/p&gt;
&lt;p&gt;Note that the clip rectangle is specified in logical (painter) coordinates.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#clipRegion()&quot;&gt;&lt;tt&gt;clipRegion&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainter.html#setClipping(boolean)&quot;&gt;&lt;tt&gt;setClipping&lt;/tt&gt;&lt;/a&gt;
@see Clipping&lt;/tt&gt; */"/>
    <method name="public final void setClipRect(com.trolltech.qt.core.QRectF arg__1)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPainter.html#setClipRect(com.trolltech.qt.core.QRect, com.trolltech.qt.core.Qt.ClipOperation)&quot;&gt;&lt;tt&gt;setClipRect&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;arg__1&lt;/tt&gt;, Qt::ReplaceClip). */"/>
    <method name="public final void setClipRect(int x, int y, int w, int h, com.trolltech.qt.core.Qt.ClipOperation op)" doc="/**
&lt;p&gt;Enables clipping, and sets the clip region to the rectangle beginning at (&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;) with the given &lt;tt&gt;w&lt;/tt&gt; and &lt;tt&gt;h&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void setClipRect(int x, int y, int w, int h)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPainter.html#setClipRect(com.trolltech.qt.core.QRect, com.trolltech.qt.core.Qt.ClipOperation)&quot;&gt;&lt;tt&gt;setClipRect&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;, &lt;tt&gt;w&lt;/tt&gt;, &lt;tt&gt;h&lt;/tt&gt;, Qt::ReplaceClip). */"/>
    <method name="public final void setClipRect(com.trolltech.qt.core.QRect arg__1, com.trolltech.qt.core.Qt.ClipOperation op)" doc="/**
&lt;p&gt;Enables clipping, and sets the clip region to the given &lt;tt&gt;arg__1&lt;/tt&gt; using the given clip &lt;tt&gt;op&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void setClipRect(com.trolltech.qt.core.QRect arg__1)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPainter.html#setClipRect(com.trolltech.qt.core.QRect, com.trolltech.qt.core.Qt.ClipOperation)&quot;&gt;&lt;tt&gt;setClipRect&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;arg__1&lt;/tt&gt;, Qt::ReplaceClip). */"/>
    <method name="public final void setClipRegion(com.trolltech.qt.gui.QRegion arg__1, com.trolltech.qt.core.Qt.ClipOperation op)" doc="/**
&lt;p&gt;Sets the clip region to the given &lt;tt&gt;arg__1&lt;/tt&gt; using the specified clip &lt;tt&gt;op&lt;/tt&gt;. The default clip operation is to replace the current clip region.&lt;/p&gt;
&lt;p&gt;Note that the clip region is given in logical coordinates.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#clipRegion()&quot;&gt;&lt;tt&gt;clipRegion&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainter.html#setClipRect(com.trolltech.qt.core.QRect, com.trolltech.qt.core.Qt.ClipOperation)&quot;&gt;&lt;tt&gt;setClipRect&lt;/tt&gt;&lt;/a&gt;
@see Clipping&lt;/tt&gt; */"/>
    <method name="public final void setClipRegion(com.trolltech.qt.gui.QRegion arg__1)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPainter.html#setClipRegion(com.trolltech.qt.gui.QRegion, com.trolltech.qt.core.Qt.ClipOperation)&quot;&gt;&lt;tt&gt;setClipRegion&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;arg__1&lt;/tt&gt;, Qt::ReplaceClip). */"/>
    <method name="public final void setClipping(boolean enable)" doc="/**
&lt;p&gt;Enables clipping if &lt;tt&gt;enable&lt;/tt&gt; is true, or disables clipping if &lt;tt&gt;enable&lt;/tt&gt; is false.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#hasClipping()&quot;&gt;&lt;tt&gt;hasClipping&lt;/tt&gt;&lt;/a&gt;
@see Clipping&lt;/tt&gt; */"/>
    <method name="public final void setCompositionMode(com.trolltech.qt.gui.QPainter.CompositionMode mode)" doc="/**
&lt;p&gt;Sets the composition mode to the given &lt;tt&gt;mode&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; You can only set the composition mode for &lt;a href=&quot;QPainter.html#QPainter(com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;QPainter&lt;/tt&gt;&lt;/a&gt; objects that operates on a &lt;a href=&quot;QImage.html&quot;&gt;&lt;tt&gt;QImage&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#compositionMode()&quot;&gt;&lt;tt&gt;compositionMode&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setFont(com.trolltech.qt.gui.QFont f)" doc="/**
&lt;p&gt;Sets the painter's font to the given &lt;tt&gt;f&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;This font is used by subsequent &lt;a href=&quot;QPainter.html#drawText(com.trolltech.qt.core.QPoint, java.lang.String)&quot;&gt;&lt;tt&gt;drawText&lt;/tt&gt;&lt;/a&gt; functions. The text color is the same as the pen color.&lt;/p&gt;
&lt;p&gt;If you set a font that isn't available, Qt finds a close match. &lt;a href=&quot;QPainter.html#font()&quot;&gt;&lt;tt&gt;font&lt;/tt&gt;&lt;/a&gt; will return what you set using &lt;a href=&quot;QPainter.html#setFont(com.trolltech.qt.gui.QFont)&quot;&gt;&lt;tt&gt;setFont&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QPainter.html#fontInfo()&quot;&gt;&lt;tt&gt;fontInfo&lt;/tt&gt;&lt;/a&gt; returns the font actually being used (which may be the same).&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#font()&quot;&gt;&lt;tt&gt;font&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainter.html#drawText(com.trolltech.qt.core.QPoint, java.lang.String)&quot;&gt;&lt;tt&gt;drawText&lt;/tt&gt;&lt;/a&gt;
@see Settings&lt;/tt&gt; */"/>
    <method name="public final void setLayoutDirection(com.trolltech.qt.core.Qt.LayoutDirection direction)" doc="/**
&lt;p&gt;Sets the layout direction used by the painter when drawing text, to the specified &lt;tt&gt;direction&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#layoutDirection()&quot;&gt;&lt;tt&gt;layoutDirection&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainter.html#drawText(com.trolltech.qt.core.QPoint, java.lang.String)&quot;&gt;&lt;tt&gt;drawText&lt;/tt&gt;&lt;/a&gt;
@see Settings&lt;/tt&gt; */"/>
    <method name="public final void setOpacity(double opacity)" doc="/**
&lt;p&gt;Sets the opacity of the painter to &lt;tt&gt;opacity&lt;/tt&gt;. The value should be in the range 0.0 to 1.0, where 0.0 is fully transparent and 1.0 is fully opaque.&lt;/p&gt;
&lt;p&gt;Opacity set on the painter will apply to all drawing operations individually.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#opacity()&quot;&gt;&lt;tt&gt;opacity&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setPen(com.trolltech.qt.gui.QColor color)" doc="/**
&lt;p&gt;Sets the painter's pen to have style Qt::SolidLine, width 0 and the specified &lt;tt&gt;color&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void setPen(com.trolltech.qt.gui.QPen pen)" doc="/**
&lt;p&gt;Sets the painter's pen to be the given &lt;tt&gt;pen&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;pen&lt;/tt&gt; defines how to draw lines and outlines, and it also defines the text color.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#pen()&quot;&gt;&lt;tt&gt;pen&lt;/tt&gt;&lt;/a&gt;
@see Settings&lt;/tt&gt; */"/>
    <method name="public final void setPen(com.trolltech.qt.core.Qt.PenStyle style)" doc="/**
&lt;p&gt;Sets the painter's pen to have the given &lt;tt&gt;style&lt;/tt&gt;, width 0 and black color.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#pen()&quot;&gt;&lt;tt&gt;pen&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setRenderHint(com.trolltech.qt.gui.QPainter.RenderHint hint, boolean on)" doc="/**
&lt;p&gt;Sets the given render &lt;tt&gt;hint&lt;/tt&gt; on the painter if &lt;tt&gt;on&lt;/tt&gt; is true; otherwise clears the render hint.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#setRenderHints(com.trolltech.qt.gui.QPainter.RenderHints, boolean)&quot;&gt;&lt;tt&gt;setRenderHints&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainter.html#renderHints()&quot;&gt;&lt;tt&gt;renderHints&lt;/tt&gt;&lt;/a&gt;
@see Rendering Quality&lt;/tt&gt; */"/>
    <method name="public final void setRenderHint(com.trolltech.qt.gui.QPainter.RenderHint hint)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPainter.html#setRenderHint(com.trolltech.qt.gui.QPainter.RenderHint, boolean)&quot;&gt;&lt;tt&gt;setRenderHint&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;hint&lt;/tt&gt;, true). */"/>
    <method name="public final void setRenderHints(com.trolltech.qt.gui.QPainter.RenderHints hints, boolean on)" doc="/**
&lt;p&gt;Sets the given render &lt;tt&gt;hints&lt;/tt&gt; on the painter if &lt;tt&gt;on&lt;/tt&gt; is true; otherwise clears the render hints.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#setRenderHint(com.trolltech.qt.gui.QPainter.RenderHint, boolean)&quot;&gt;&lt;tt&gt;setRenderHint&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainter.html#renderHints()&quot;&gt;&lt;tt&gt;renderHints&lt;/tt&gt;&lt;/a&gt;
@see Rendering Quality&lt;/tt&gt; */"/>
    <method name="public final void setRenderHints(com.trolltech.qt.gui.QPainter.RenderHints hints)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPainter.html#setRenderHints(com.trolltech.qt.gui.QPainter.RenderHints, boolean)&quot;&gt;&lt;tt&gt;setRenderHints&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;hints&lt;/tt&gt;, true). */"/>
    <method name="public final void setTransform(com.trolltech.qt.gui.QTransform transform, boolean combine)" doc="/**
&lt;p&gt;Sets the world transformation matrix. If &lt;tt&gt;combine&lt;/tt&gt; is true, the specified &lt;tt&gt;transform&lt;/tt&gt; is combined with the current matrix; otherwise it replaces the current matrix.&lt;/p&gt;
&lt;p&gt;This function has been added for compatibility with setMatrix(), but as with setMatrix() the preferred method of setting a transformation on the painter is through &lt;a href=&quot;QPainter.html#setWorldTransform(com.trolltech.qt.gui.QTransform, boolean)&quot;&gt;&lt;tt&gt;setWorldTransform&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#transform()&quot;&gt;&lt;tt&gt;transform&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setTransform(com.trolltech.qt.gui.QTransform transform)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPainter.html#setTransform(com.trolltech.qt.gui.QTransform, boolean)&quot;&gt;&lt;tt&gt;setTransform&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;transform&lt;/tt&gt;, false). */"/>
    <method name="public final void setViewTransformEnabled(boolean enable)" doc="/**
&lt;p&gt;Enables view transformations if &lt;tt&gt;enable&lt;/tt&gt; is true, or disables view transformations if &lt;tt&gt;enable&lt;/tt&gt; is false.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#viewTransformEnabled()&quot;&gt;&lt;tt&gt;viewTransformEnabled&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/coordsys.html#window-viewport-conversion&quot;&gt;Window-Viewport Conversion&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setViewport(int x, int y, int w, int h)" doc="/**
&lt;p&gt;Sets the painter's viewport rectangle to be the rectangle beginning at (&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;) with the given &lt;tt&gt;w&lt;/tt&gt; and &lt;tt&gt;h&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void setViewport(com.trolltech.qt.core.QRect viewport)" doc="/**
&lt;p&gt;Sets the painter's viewport rectangle to the given &lt;tt&gt;viewport&lt;/tt&gt;, and enables view transformations.&lt;/p&gt;
&lt;p&gt;The viewport rectangle is part of the view transformation. The viewport specifies the device coordinate system. Its sister, the &lt;a href=&quot;QPainter.html#window()&quot;&gt;&lt;tt&gt;window&lt;/tt&gt;&lt;/a&gt;, specifies the logical coordinate system.&lt;/p&gt;
&lt;p&gt;The default viewport rectangle is the same as the device's rectangle.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#viewport()&quot;&gt;&lt;tt&gt;viewport&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainter.html#viewTransformEnabled()&quot;&gt;&lt;tt&gt;viewTransformEnabled&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/coordsys.html#window-viewport-conversion&quot;&gt;Window-Viewport Conversion&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setWindow(int x, int y, int w, int h)" doc="/**
&lt;p&gt;Sets the painter's window to the rectangle beginning at (&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;) and the given &lt;tt&gt;w&lt;/tt&gt; and &lt;tt&gt;h&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void setWindow(com.trolltech.qt.core.QRect window)" doc="/**
&lt;p&gt;Sets the painter's window to the given &lt;tt&gt;window&lt;/tt&gt;, and enables view transformations.&lt;/p&gt;
&lt;p&gt;The window rectangle is part of the view transformation. The window specifies the logical coordinate system. Its sister, the &lt;a href=&quot;QPainter.html#viewport()&quot;&gt;&lt;tt&gt;viewport&lt;/tt&gt;&lt;/a&gt;, specifies the device coordinate system.&lt;/p&gt;
&lt;p&gt;The default window rectangle is the same as the device's rectangle.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#window()&quot;&gt;&lt;tt&gt;window&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainter.html#viewTransformEnabled()&quot;&gt;&lt;tt&gt;viewTransformEnabled&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/coordsys.html#window-viewport-conversion&quot;&gt;Window-Viewport Conversion&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setWorldMatrix(com.trolltech.qt.gui.QMatrix matrix, boolean combine)" doc="/**
&lt;p&gt;Sets the transformation matrix to &lt;tt&gt;matrix&lt;/tt&gt; and enables transformations.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Note:&lt;/b&gt; It is advisable to use &lt;a href=&quot;QPainter.html#setWorldTransform(com.trolltech.qt.gui.QTransform, boolean)&quot;&gt;&lt;tt&gt;setWorldTransform&lt;/tt&gt;&lt;/a&gt; instead of this function to preserve the properties of perspective transformations.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;combine&lt;/tt&gt; is true, then &lt;tt&gt;matrix&lt;/tt&gt; is combined with the current transformation matrix; otherwise &lt;tt&gt;matrix&lt;/tt&gt; replaces the current transformation matrix.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;matrix&lt;/tt&gt; is the identity matrix and &lt;tt&gt;combine&lt;/tt&gt; is false, this function calls &lt;a href=&quot;QPainter.html#setWorldMatrixEnabled(boolean)&quot;&gt;&lt;tt&gt;setWorldMatrixEnabled&lt;/tt&gt;&lt;/a&gt;(false). (The identity matrix is the matrix where QMatrix::m11() and QMatrix::m22() are 1.0 and the rest are 0.0&amp;#x2e;)&lt;/p&gt;
&lt;p&gt;The following functions can transform the coordinate system without using a &lt;a href=&quot;QMatrix.html&quot;&gt;&lt;tt&gt;QMatrix&lt;/tt&gt;&lt;/a&gt;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;QPainter.html#translate(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;translate&lt;/tt&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QPainter.html#scale(double, double)&quot;&gt;&lt;tt&gt;scale&lt;/tt&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QPainter.html#shear(double, double)&quot;&gt;&lt;tt&gt;shear&lt;/tt&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QPainter.html#rotate(double)&quot;&gt;&lt;tt&gt;rotate&lt;/tt&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;They operate on the painter's &lt;a href=&quot;QPainter.html#worldMatrix()&quot;&gt;&lt;tt&gt;worldMatrix&lt;/tt&gt;&lt;/a&gt; and are implemented like this:&lt;/p&gt;
&lt;pre&gt;    void QPainter::rotate(qreal angle)
    {
        QMatrix matrix;
        matrix.rotate(angle);
        setWorldMatrix(matrix, true);
    }&lt;/pre&gt;
&lt;p&gt;Note that when using &lt;a href=&quot;QPainter.html#setWorldMatrix(com.trolltech.qt.gui.QMatrix, boolean)&quot;&gt;&lt;tt&gt;setWorldMatrix&lt;/tt&gt;&lt;/a&gt; function you should always have &lt;tt&gt;combine&lt;/tt&gt; be true when you are drawing into a &lt;a href=&quot;QPicture.html&quot;&gt;&lt;tt&gt;QPicture&lt;/tt&gt;&lt;/a&gt;. Otherwise it may not be possible to replay the picture with additional transformations; using the &lt;a href=&quot;QPainter.html#translate(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;translate&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPainter.html#scale(double, double)&quot;&gt;&lt;tt&gt;scale&lt;/tt&gt;&lt;/a&gt;, etc. convenience functions is safe.&lt;/p&gt;
&lt;p&gt;For more information about the coordinate system, transformations and window-viewport conversion, see &lt;a href=&quot;%2E%2E/coordsys.html&quot;&gt;The Coordinate System&lt;/tt&gt;&lt;/a&gt; documentation.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#worldMatrixEnabled()&quot;&gt;&lt;tt&gt;worldMatrixEnabled&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMatrix.html&quot;&gt;&lt;tt&gt;QMatrix&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setWorldMatrix(com.trolltech.qt.gui.QMatrix matrix)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPainter.html#setWorldMatrix(com.trolltech.qt.gui.QMatrix, boolean)&quot;&gt;&lt;tt&gt;setWorldMatrix&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;matrix&lt;/tt&gt;, false). */"/>
    <method name="public final void setWorldMatrixEnabled(boolean enabled)" doc="/**
&lt;p&gt;Enables transformations if &lt;tt&gt;enabled&lt;/tt&gt; is true, or disables transformations if &lt;tt&gt;enabled&lt;/tt&gt; is false. The world transformation matrix is not changed.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#worldMatrixEnabled()&quot;&gt;&lt;tt&gt;worldMatrixEnabled&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainter.html#worldMatrix()&quot;&gt;&lt;tt&gt;worldMatrix&lt;/tt&gt;&lt;/a&gt;
@see Coordinate Transformations&lt;/tt&gt; */"/>
    <method name="public final void setWorldTransform(com.trolltech.qt.gui.QTransform matrix, boolean combine)" doc="/**
&lt;p&gt;Sets the world transformation matrix. If &lt;tt&gt;combine&lt;/tt&gt; is true, the specified &lt;tt&gt;matrix&lt;/tt&gt; is combined with the current matrix; otherwise it replaces the current matrix.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#worldTransform()&quot;&gt;&lt;tt&gt;worldTransform&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainter.html#transform()&quot;&gt;&lt;tt&gt;transform&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainter.html#setTransform(com.trolltech.qt.gui.QTransform, boolean)&quot;&gt;&lt;tt&gt;setTransform&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setWorldTransform(com.trolltech.qt.gui.QTransform matrix)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPainter.html#setWorldTransform(com.trolltech.qt.gui.QTransform, boolean)&quot;&gt;&lt;tt&gt;setWorldTransform&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;matrix&lt;/tt&gt;, false). */"/>
    <method name="public final void shear(double sh, double sv)" doc="/**
&lt;p&gt;Shears the coordinate system by (&lt;tt&gt;sh&lt;/tt&gt;, &lt;tt&gt;sv&lt;/tt&gt;).&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#setWorldMatrix(com.trolltech.qt.gui.QMatrix, boolean)&quot;&gt;&lt;tt&gt;setWorldMatrix&lt;/tt&gt;&lt;/a&gt;
@see Coordinate Transformations&lt;/tt&gt; */"/>
    <method name="public final void strokePath(com.trolltech.qt.gui.QPainterPath path, com.trolltech.qt.gui.QPen pen)" doc="/**
&lt;p&gt;Draws the outline (strokes) the path &lt;tt&gt;path&lt;/tt&gt; with the pen specified by &lt;tt&gt;pen&lt;/tt&gt;&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#fillPath(com.trolltech.qt.gui.QPainterPath, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;fillPath&lt;/tt&gt;&lt;/a&gt;
@see Drawing&lt;/tt&gt; */"/>
    <method name="public final boolean testRenderHint(com.trolltech.qt.gui.QPainter.RenderHint hint)" doc="/**
&lt;p&gt;Returns true if &lt;tt&gt;hint&lt;/tt&gt; is set; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#renderHints()&quot;&gt;&lt;tt&gt;renderHints&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainter.html#setRenderHint(com.trolltech.qt.gui.QPainter.RenderHint, boolean)&quot;&gt;&lt;tt&gt;setRenderHint&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QTransform transform()" doc="/**
&lt;p&gt;Returns the world transformation matrix.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#setTransform(com.trolltech.qt.gui.QTransform, boolean)&quot;&gt;&lt;tt&gt;setTransform&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void translate(double dx, double dy)" doc="/**
&lt;p&gt;Translates the coordinate system by the vector (&lt;tt&gt;dx&lt;/tt&gt;, &lt;tt&gt;dy&lt;/tt&gt;).&lt;/p&gt;
 */"/>
    <method name="public final void translate(com.trolltech.qt.core.QPointF offset)" doc="/**
&lt;p&gt;Translates the coordinate system by the given &lt;tt&gt;offset&lt;/tt&gt;; i.e&amp;#x2e; the given &lt;tt&gt;offset&lt;/tt&gt; is added to points.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#setWorldMatrix(com.trolltech.qt.gui.QMatrix, boolean)&quot;&gt;&lt;tt&gt;setWorldMatrix&lt;/tt&gt;&lt;/a&gt;
@see Coordinate Transformations&lt;/tt&gt; */"/>
    <method name="public final void translate(com.trolltech.qt.core.QPoint offset)" doc="/**
&lt;p&gt;Translates the coordinate system by the given &lt;tt&gt;offset&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final boolean viewTransformEnabled()" doc="/**
&lt;p&gt;Returns true if view transformation is enabled; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#setViewTransformEnabled(boolean)&quot;&gt;&lt;tt&gt;setViewTransformEnabled&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainter.html#worldMatrix()&quot;&gt;&lt;tt&gt;worldMatrix&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QRect viewport()" doc="/**
&lt;p&gt;Returns the viewport rectangle.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#setViewport(com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;setViewport&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainter.html#setViewTransformEnabled(boolean)&quot;&gt;&lt;tt&gt;setViewTransformEnabled&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QRect window()" doc="/**
&lt;p&gt;Returns the window rectangle.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#setWindow(com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;setWindow&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainter.html#setViewTransformEnabled(boolean)&quot;&gt;&lt;tt&gt;setViewTransformEnabled&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QMatrix worldMatrix()" doc="/**
&lt;p&gt;Returns the world transformation matrix.&lt;/p&gt;
&lt;p&gt;It is advisable to use &lt;a href=&quot;QPainter.html#worldTransform()&quot;&gt;&lt;tt&gt;worldTransform&lt;/tt&gt;&lt;/a&gt; because &lt;a href=&quot;QPainter.html#worldMatrix()&quot;&gt;&lt;tt&gt;worldMatrix&lt;/tt&gt;&lt;/a&gt; does not preserve the properties of perspective transformations.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#setWorldMatrix(com.trolltech.qt.gui.QMatrix, boolean)&quot;&gt;&lt;tt&gt;setWorldMatrix&lt;/tt&gt;&lt;/a&gt;
@see Coordinate Transformations&lt;/tt&gt;
@see &lt;a href=&quot;%2E%2E/coordsys.html&quot;&gt;The Coordinate System&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean worldMatrixEnabled()" doc="/**
&lt;p&gt;Returns true if world transformation is enabled; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#setWorldMatrixEnabled(boolean)&quot;&gt;&lt;tt&gt;setWorldMatrixEnabled&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainter.html#worldMatrix()&quot;&gt;&lt;tt&gt;worldMatrix&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/coordsys.html&quot;&gt;The Coordinate System&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QTransform worldTransform()" doc="/**
&lt;p&gt;Returns the world transformation matrix.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#setWorldTransform(com.trolltech.qt.gui.QTransform, boolean)&quot;&gt;&lt;tt&gt;setWorldTransform&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public static void restoreRedirected(com.trolltech.qt.gui.QPaintDeviceInterface device)" doc="/**
&lt;p&gt;Restores the previous redirection for the given &lt;tt&gt;device&lt;/tt&gt; after a call to &lt;a href=&quot;QPainter.html#setRedirected(com.trolltech.qt.gui.QPaintDeviceInterface, com.trolltech.qt.gui.QPaintDeviceInterface, com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;setRedirected&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;tt&gt;redirected&lt;/tt&gt; */"/>
    <method name="public static void setRedirected(com.trolltech.qt.gui.QPaintDeviceInterface device, com.trolltech.qt.gui.QPaintDeviceInterface replacement, com.trolltech.qt.core.QPoint offset)" doc="/**
&lt;p&gt;Redirects all paint commands for the given paint &lt;tt&gt;device&lt;/tt&gt;, to the &lt;tt&gt;replacement&lt;/tt&gt; device. The optional point &lt;tt&gt;offset&lt;/tt&gt; defines an offset within the source device.&lt;/p&gt;
&lt;p&gt;The redirection will not be effective until the &lt;a href=&quot;QPainter.html#begin(com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;begin&lt;/tt&gt;&lt;/a&gt; function has been called; make sure to call &lt;a href=&quot;QPainter.html#end()&quot;&gt;&lt;tt&gt;end&lt;/tt&gt;&lt;/a&gt; for the given &lt;tt&gt;device&lt;/tt&gt;'s painter (if any) before redirecting. Call &lt;a href=&quot;QPainter.html#restoreRedirected(com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;restoreRedirected&lt;/tt&gt;&lt;/a&gt; to restore the previous redirection.&lt;/p&gt;
&lt;p&gt;In general, you'll probably find that calling QPixmap::grabWidget() or QPixmap::grabWindow() is an easier solution.&lt;/p&gt;

@see &lt;tt&gt;redirected&lt;/tt&gt;
@see &lt;a href=&quot;QPainter.html#restoreRedirected(com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;restoreRedirected&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public static void setRedirected(com.trolltech.qt.gui.QPaintDeviceInterface device, com.trolltech.qt.gui.QPaintDeviceInterface replacement)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPainter.html#setRedirected(com.trolltech.qt.gui.QPaintDeviceInterface, com.trolltech.qt.gui.QPaintDeviceInterface, com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;setRedirected&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;device&lt;/tt&gt;, &lt;tt&gt;replacement&lt;/tt&gt;, QPoint()). */"/>
    <enum name="CompositionMode" doc="/**
&lt;p&gt;Defines the Porter-Duff rules for digital image compositing. Composition modes are used to specify how the pixels in one image, the source, are merged with the pixel in another image, the destination.&lt;/p&gt;
&lt;p align=&quot;center&quot;&gt;&lt;img src=&quot;%2E%2E/images/qpainter-compositionmode1.png&quot; /&gt;&lt;/p&gt;&lt;p align=&quot;center&quot;&gt;&lt;img src=&quot;%2E%2E/images/qpainter-compositionmode2.png&quot; /&gt;&lt;/p&gt;&lt;p&gt;The most common type is SourceOver (often referred to as just alpha blending) where the source pixel is blended on top of the destination pixel in such a way that the alpha component of the source defines the translucency of the pixel.&lt;/p&gt;
&lt;p&gt;When the paint device is a &lt;a href=&quot;QImage.html&quot;&gt;&lt;tt&gt;QImage&lt;/tt&gt;&lt;/a&gt;, the image format must be set to Format_ARGB32Premultiplied or Format_ARGB32 for the composition modes to have any effect. For performance the premultiplied version is the preferred format.&lt;/p&gt;
&lt;p&gt;When a composition mode is set it applies to all painting operator, pens, brushes, gradients and pixmap/image drawing.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#compositionMode()&quot;&gt;&lt;tt&gt;compositionMode&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainter.html#setCompositionMode(com.trolltech.qt.gui.QPainter.CompositionMode)&quot;&gt;&lt;tt&gt;setCompositionMode&lt;/tt&gt;&lt;/a&gt;
@see Composition Modes&lt;/tt&gt;
@see Image Composition Example&lt;/tt&gt; */">
        <enum-value name="CompositionMode_SourceOver" doc="/**
&lt;p&gt;This is the default mode. The alpha of the source is used to blend the pixel on top of the destination.&lt;/p&gt;
 */"/>
        <enum-value name="CompositionMode_DestinationOver" doc="/**
&lt;p&gt;The alpha of the destination is used to blend it on top of the source pixels. This mode is the inverse of &lt;a href=&quot;QPainter.html#CompositionMode-enum&quot;&gt;&lt;tt&gt;CompositionMode_SourceOver&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
        <enum-value name="CompositionMode_Clear" doc="/**
&lt;p&gt;The pixels in the destination are cleared (set to fully transparent) independent of the source.&lt;/p&gt;
 */"/>
        <enum-value name="CompositionMode_Source" doc="/**
&lt;p&gt;The output is the source pixel. (This means a basic copy operation and is identical to SourceOver when the source pixel is opaque).&lt;/p&gt;
 */"/>
        <enum-value name="CompositionMode_Destination" doc="/**
&lt;p&gt;The output is the destination pixel. This means that the blending has no effect. This mode is the inverse of &lt;a href=&quot;QPainter.html#CompositionMode-enum&quot;&gt;&lt;tt&gt;CompositionMode_Source&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
        <enum-value name="CompositionMode_SourceIn" doc="/**
&lt;p&gt;The output is the source, where the alpha is reduced by that of the destination.&lt;/p&gt;
 */"/>
        <enum-value name="CompositionMode_DestinationIn" doc="/**
&lt;p&gt;The output is the destination, where the alpha is reduced by that of the source. This mode is the inverse of &lt;a href=&quot;QPainter.html#CompositionMode-enum&quot;&gt;&lt;tt&gt;CompositionMode_SourceIn&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
        <enum-value name="CompositionMode_SourceOut" doc="/**
&lt;p&gt;The output is the source, where the alpha is reduced by the inverse of destination.&lt;/p&gt;
 */"/>
        <enum-value name="CompositionMode_DestinationOut" doc="/**
&lt;p&gt;The output is the destination, where the alpha is reduced by the inverse of the source. This mode is the inverse of &lt;a href=&quot;QPainter.html#CompositionMode-enum&quot;&gt;&lt;tt&gt;CompositionMode_SourceOut&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
        <enum-value name="CompositionMode_SourceAtop" doc="/**
&lt;p&gt;The source pixel is blended on top of the destination, with the alpha of the source pixel reduced by the alpha of the destination pixel.&lt;/p&gt;
 */"/>
        <enum-value name="CompositionMode_DestinationAtop" doc="/**
&lt;p&gt;The destination pixel is blended on top of the source, with the alpha of the destination pixel is reduced by the alpha of the destination pixel. This mode is the inverse of &lt;a href=&quot;QPainter.html#CompositionMode-enum&quot;&gt;&lt;tt&gt;CompositionMode_SourceAtop&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
        <enum-value name="CompositionMode_Xor" doc="/**
&lt;p&gt;The source, whose alpha is reduced with the inverse of the destination alpha, is merged with the destination, whose alpha is reduced by the inverse of the source alpha. &lt;a href=&quot;QPainter.html#CompositionMode-enum&quot;&gt;&lt;tt&gt;CompositionMode_Xor&lt;/tt&gt;&lt;/a&gt; is not the same as the bitwise Xor.&lt;/p&gt;
 */"/>
        <enum-value name="CompositionMode_Plus" doc="/**
&lt;p&gt;Both the alpha and color of the source and destination pixels are added together.&lt;/p&gt;
 */"/>
        <enum-value name="CompositionMode_Multiply" doc="/**
&lt;p&gt;The output is the source color multiplied by the destination. Multiplying a color with white leaves the color unchanged, while multiplying a color with black produces black.&lt;/p&gt;
 */"/>
        <enum-value name="CompositionMode_Screen" doc="/**
&lt;p&gt;The source and destination colors are inverted and then multiplied. Screening a color with white produces white, whereas screening a color with black leaves the color unchanged.&lt;/p&gt;
 */"/>
        <enum-value name="CompositionMode_Overlay" doc="/**
&lt;p&gt;Multiplies or screens the colors depending on the destination color. The destination color is mixed with the source color to reflect the lightness or darkness of the destination.&lt;/p&gt;
 */"/>
        <enum-value name="CompositionMode_Darken" doc="/**
&lt;p&gt;The darker of the source and destination colors is selected.&lt;/p&gt;
 */"/>
        <enum-value name="CompositionMode_Lighten" doc="/**
&lt;p&gt;The lighter of the source and destination colors is selected.&lt;/p&gt;
 */"/>
        <enum-value name="CompositionMode_ColorDodge" doc="/**
&lt;p&gt;The destination color is brightened to reflect the source color. A black source color leaves the destination color unchanged.&lt;/p&gt;
 */"/>
        <enum-value name="CompositionMode_ColorBurn" doc="/**
&lt;p&gt;The destination color is darkened to reflect the source color. A white source color leaves the destination color unchanged.&lt;/p&gt;
 */"/>
        <enum-value name="CompositionMode_HardLight" doc="/**
&lt;p&gt;Multiplies or screens the colors depending on the source color. A light source color will lighten the destination color, whereas a dark source color will darken the destination color.&lt;/p&gt;
 */"/>
        <enum-value name="CompositionMode_SoftLight" doc="/**
&lt;p&gt;Darkens or lightens the colors depending on the source color. Similar to &lt;a href=&quot;QPainter.html#CompositionMode-enum&quot;&gt;&lt;tt&gt;CompositionMode_HardLight&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
        <enum-value name="CompositionMode_Difference" doc="/**
&lt;p&gt;Subtracts the darker of the colors from the lighter. Painting with white inverts the destination color, whereas painting with black leaves the destination color unchanged.&lt;/p&gt;
 */"/>
        <enum-value name="CompositionMode_Exclusion" doc="/**
&lt;p&gt;Similar to &lt;a href=&quot;QPainter.html#CompositionMode-enum&quot;&gt;&lt;tt&gt;CompositionMode_Difference&lt;/tt&gt;&lt;/a&gt;, but with a lower contrast. Painting with white inverts the destination color, whereas painting with black leaves the destination color unchanged.&lt;/p&gt;
 */"/>
</enum>
    <enum name="RenderHint" doc="/**
&lt;p&gt;Renderhints are used to specify flags to &lt;a href=&quot;QPainter.html#QPainter(com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;QPainter&lt;/tt&gt;&lt;/a&gt; that may or may not be respected by any given engine.&lt;/p&gt;

@see &lt;a href=&quot;QPainter.html#renderHints()&quot;&gt;&lt;tt&gt;renderHints&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainter.html#setRenderHint(com.trolltech.qt.gui.QPainter.RenderHint, boolean)&quot;&gt;&lt;tt&gt;setRenderHint&lt;/tt&gt;&lt;/a&gt;
@see Rendering Quality&lt;/tt&gt;
@see Concentric Circles Example&lt;/tt&gt; */">
        <enum-value name="Antialiasing" doc="/**
&lt;p&gt;Indicates that the engine should antialias edges of primitives if possible.&lt;/p&gt;
 */"/>
        <enum-value name="TextAntialiasing" doc="/**
&lt;p&gt;Indicates that the engine should antialias text if possible.&lt;/p&gt;
 */"/>
        <enum-value name="SmoothPixmapTransform" doc="/**
&lt;p&gt;Indicates that the engine should use a smooth pixmap transformation algorithm (such as bilinear) rather than nearest neighbor.&lt;/p&gt;
 */"/>
        <enum-value name="HighQualityAntialiasing" doc="/**
&lt;p&gt;An OpenGL-specific rendering hint indicating that the engine should use fragment programs and offscreen rendering for antialiasing.&lt;/p&gt;
 */"/>
</enum>
</class>
