Sophie

Sophie

distrib > Mandriva > current > i586 > media > main-updates > by-pkgid > 8e6051afcdb111a0317a58fb64c2abf5 > files > 3200

qt4-doc-4.6.3-0.2mdv2010.2.i586.rpm

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- paintsystem.qdoc -->
<head>
  <title>Qt 4.6: The Paint System</title>
  <link href="classic.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left" valign="top" width="32"><a href="http://qt.nokia.com/"><img src="images/qt-logo.png" align="left" border="0" /></a></td>
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">All&nbsp;Functions</font></a>&nbsp;&middot; <a href="overviews.html"><font color="#004faf">Overviews</font></a></td></tr></table><h1 class="title">The Paint System<br /><span class="subtitle"></span>
</h1>
<p>Qt's paint system enables painting on screen and print devices using the same API, and is primarily based on the <a href="qpainter.html">QPainter</a>, <a href="qpaintdevice.html">QPaintDevice</a>, and <a href="qpaintengine.html">QPaintEngine</a> classes.</p>
<p><a href="qpainter.html">QPainter</a> is used to perform drawing operations, <a href="qpaintdevice.html">QPaintDevice</a> is an abstraction of a two-dimensional space that can be painted on using a <a href="qpainter.html">QPainter</a>, and <a href="qpaintengine.html">QPaintEngine</a> provides the interface that the painter uses to draw onto different types of devices. The <a href="qpaintengine.html">QPaintEngine</a> class is used internally by <a href="qpainter.html">QPainter</a> and <a href="qpaintdevice.html">QPaintDevice</a>, and is hidden from application programmers unless they create their own device type.</p>
<p align="center"><img src="images/paintsystem-core.png" /></p><p>The main benefit of this approach is that all painting follows the same painting pipeline making it easy to add support for new features and providing default implementations for unsupported ones.</p>
<a name="topics"></a>
<h2>Topics</h2>
<ul>
<li><a href="#classes-for-painting">Classes for Painting</a></li>
<li><a href="paintsystem-devices.html">Paint Devices and Backends</a></li>
<li><a href="paintsystem-drawing.html">Drawing and Filling</a></li>
<li><a href="coordsys.html">The Coordinate System</a></li>
<li><a href="paintsystem-images.html">Reading and Writing Image Files</a></li>
<li><a href="paintsystem-styling.html">Styling</a></li>
<li><a href="printing.html">Printing with Qt</a></li>
</ul>
<a name="classes-for-painting"></a>
<h2>Classes for Painting</h2>
<p>These classes provide support for painting onto a paint device.</p>
<p><table width="100%" class="annotated" cellpadding="2" cellspacing="1" border="0">
<tr valign="top" class="odd"><th><a href="qbitmap.html">QBitmap</a></th><td>Monochrome (1-bit depth) pixmaps</td></tr>
<tr valign="top" class="even"><th><a href="qbrush.html">QBrush</a></th><td>Defines the fill pattern of shapes drawn by QPainter</td></tr>
<tr valign="top" class="odd"><th><a href="qcolor.html">QColor</a></th><td>Colors based on RGB, HSV or CMYK values</td></tr>
<tr valign="top" class="even"><th><a href="qcolormap.html">QColormap</a></th><td>Maps device independent QColors to device dependent pixel values</td></tr>
<tr valign="top" class="odd"><th><a href="qconicalgradient.html">QConicalGradient</a></th><td>Used in combination with QBrush to specify a conical gradient brush</td></tr>
<tr valign="top" class="even"><th><a href="qdirectpainter.html">QDirectPainter</a></th><td>Direct access to the underlying hardware in Qt for Embedded Linux</td></tr>
<tr valign="top" class="odd"><th><a href="qfont.html">QFont</a></th><td>Specifies a font used for drawing text</td></tr>
<tr valign="top" class="even"><th><a href="qfontmetrics.html">QFontMetrics</a></th><td>Font metrics information</td></tr>
<tr valign="top" class="odd"><th><a href="qfontmetricsf.html">QFontMetricsF</a></th><td>Font metrics information</td></tr>
<tr valign="top" class="even"><th><a href="qgenericmatrix.html">QGenericMatrix</a></th><td>Template class that represents a NxM transformation matrix with N columns and M rows</td></tr>
<tr valign="top" class="odd"><th><a href="qgradient.html">QGradient</a></th><td>Used in combination with QBrush to specify gradient fills</td></tr>
<tr valign="top" class="even"><th><a href="qicon.html">QIcon</a></th><td>Scalable icons in different modes and states</td></tr>
<tr valign="top" class="odd"><th><a href="qiconengine.html">QIconEngine</a></th><td>Abstract base class for QIcon renderers</td></tr>
<tr valign="top" class="even"><th><a href="qiconenginev2.html">QIconEngineV2</a></th><td>Abstract base class for QIcon renderers</td></tr>
<tr valign="top" class="odd"><th><a href="qimage.html">QImage</a></th><td>Hardware-independent image representation that allows direct access to the pixel data, and can be used as a paint device</td></tr>
<tr valign="top" class="even"><th><a href="qimagereader.html">QImageReader</a></th><td>Format independent interface for reading images from files or other devices</td></tr>
<tr valign="top" class="odd"><th><a href="qimagewriter.html">QImageWriter</a></th><td>Format independent interface for writing images to files or other devices</td></tr>
<tr valign="top" class="even"><th><a href="qline.html">QLine</a></th><td>Two-dimensional vector using integer precision</td></tr>
<tr valign="top" class="odd"><th><a href="qlinef.html">QLineF</a></th><td>Two-dimensional vector using floating point precision</td></tr>
<tr valign="top" class="even"><th><a href="qlineargradient.html">QLinearGradient</a></th><td>Used in combination with QBrush to specify a linear gradient brush</td></tr>
<tr valign="top" class="odd"><th><a href="qmargins.html">QMargins</a></th><td>Defines the four margins of a rectangle</td></tr>
<tr valign="top" class="even"><th><a href="qmovie.html">QMovie</a></th><td>Convenience class for playing movies with QImageReader</td></tr>
<tr valign="top" class="odd"><th><a href="qpaintdevice.html">QPaintDevice</a></th><td>The base class of objects that can be painted</td></tr>
<tr valign="top" class="even"><th><a href="qpaintengine.html">QPaintEngine</a></th><td>Abstract definition of how QPainter draws to a given device on a given platform</td></tr>
<tr valign="top" class="odd"><th><a href="qpainter.html">QPainter</a></th><td>Performs low-level painting on widgets and other paint devices</td></tr>
<tr valign="top" class="even"><th><a href="qpainterpath.html">QPainterPath</a></th><td>Container for painting operations, enabling graphical shapes to be constructed and reused</td></tr>
<tr valign="top" class="odd"><th><a href="qpainterpathstroker.html">QPainterPathStroker</a></th><td>Used to generate fillable outlines for a given painter path</td></tr>
<tr valign="top" class="even"><th><a href="qpalette.html">QPalette</a></th><td>Contains color groups for each widget state</td></tr>
<tr valign="top" class="odd"><th><a href="qpen.html">QPen</a></th><td>Defines how a QPainter should draw lines and outlines of shapes</td></tr>
<tr valign="top" class="even"><th><a href="qpicture.html">QPicture</a></th><td>Paint device that records and replays QPainter commands</td></tr>
<tr valign="top" class="odd"><th><a href="qpixmap.html">QPixmap</a></th><td>Off-screen image representation that can be used as a paint device</td></tr>
<tr valign="top" class="even"><th><a href="qpixmapcache.html">QPixmapCache</a></th><td>Application-wide cache for pixmaps</td></tr>
<tr valign="top" class="odd"><th><a href="qpoint.html">QPoint</a></th><td>Defines a point in the plane using integer precision</td></tr>
<tr valign="top" class="even"><th><a href="qpointf.html">QPointF</a></th><td>Defines a point in the plane using floating point precision</td></tr>
<tr valign="top" class="odd"><th><a href="qpolygon.html">QPolygon</a></th><td>Vector of points using integer precision</td></tr>
<tr valign="top" class="even"><th><a href="qpolygonf.html">QPolygonF</a></th><td>Vector of points using floating point precision</td></tr>
<tr valign="top" class="odd"><th><a href="qradialgradient.html">QRadialGradient</a></th><td>Used in combination with QBrush to specify a radial gradient brush</td></tr>
<tr valign="top" class="even"><th><a href="qrect.html">QRect</a></th><td>Defines a rectangle in the plane using integer precision</td></tr>
<tr valign="top" class="odd"><th><a href="qrectf.html">QRectF</a></th><td>Defines a rectangle in the plane using floating point precision</td></tr>
<tr valign="top" class="even"><th><a href="qregion.html">QRegion</a></th><td>Specifies a clip region for a painter</td></tr>
<tr valign="top" class="odd"><th><a href="qsize.html">QSize</a></th><td>Defines the size of a two-dimensional object using integer point precision</td></tr>
<tr valign="top" class="even"><th><a href="qsizef.html">QSizeF</a></th><td>Defines the size of a two-dimensional object using floating point precision</td></tr>
<tr valign="top" class="odd"><th><a href="qstylepainter.html">QStylePainter</a></th><td>Convenience class for drawing QStyle elements inside a widget</td></tr>
<tr valign="top" class="even"><th><a href="qsvggenerator.html">QSvgGenerator</a></th><td>Paint device that is used to create SVG drawings</td></tr>
<tr valign="top" class="odd"><th><a href="qsvgrenderer.html">QSvgRenderer</a></th><td>Used to draw the contents of SVG files onto paint devices</td></tr>
<tr valign="top" class="even"><th><a href="qsvgwidget.html">QSvgWidget</a></th><td>Widget that is used to display the contents of Scalable Vector Graphics (SVG) files</td></tr>
<tr valign="top" class="odd"><th><a href="qtransform.html">QTransform</a></th><td>Specifies 2D transformations of a coordinate system</td></tr>
<tr valign="top" class="even"><th><a href="qvector2d.html">QVector2D</a></th><td>Represents a vector or vertex in 2D space</td></tr>
</table></p>
<p>Alternatively, Qt provides the <a href="qtopengl.html">QtOpenGL</a> module, offering classes that makes it easy to use OpenGL in Qt applications. Among others, the module provides an OpenGL widget class that can be used just like any other Qt widget, except that it opens an OpenGL display buffer where the OpenGL API can be used to render the contents.</p>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td width="40%" align="left">Copyright &copy; 2010 Nokia Corporation and/or its subsidiary(-ies)</td>
<td width="20%" align="center"><a href="trademarks.html">Trademarks</a></td>
<td width="40%" align="right"><div align="right">Qt 4.6.3</div></td>
</tr></table></div></address></body>
</html>