<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- qtwidgets-examples.qdoc --> <title>Painting Examples | Qt Widgets 5.11</title> <link rel="stylesheet" type="text/css" href="style/offline-simple.css" /> <script type="text/javascript"> document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css"); // loading style sheet breaks anchors that were jumped to before // so force jumping to anchor again setTimeout(function() { var anchor = location.hash; // need to jump to different anchor first (e.g. none) location.hash = "#"; setTimeout(function() { location.hash = anchor; }, 0); }, 0); </script> </head> <body> <div class="header" id="qtdocheader"> <div class="main"> <div class="main-rounded"> <div class="navigationbar"> <table><tr> <td ><a href="../qtdoc/index.html">Qt 5.11</a></td><td ><a href="qtwidgets-index.html">Qt Widgets</a></td><td >Painting Examples</td></tr></table><table class="buildversion"><tr> <td id="buildversion" width="100%" align="right">Qt 5.11.2 Reference Documentation</td> </tr></table> </div> </div> <div class="content"> <div class="line"> <div class="content mainContent"> <div class="sidebar"><div class="sidebar-content" id="sidebar-content"></div></div> <h1 class="title">Painting Examples</h1> <span class="subtitle"></span> <!-- $$$examples-painting-description --> <div class="descr"> <a name="details"></a> <p class="centerAlign"><img src="images/painting-examples.png" alt="" /></p><p>Qt's painting system is able to render vector graphics, images, and outline font-based text with sub-pixel accuracy using anti-aliasing to improve rendering quality.</p> <p>These examples show the most common techniques that are used when painting with Qt, from basic concepts such as drawing simple primitives to the use of transformations.</p> </div> <!-- @@@examples-painting --> <div class="table"><table class="annotated"> <tr class="odd topAlign"><td class="tblName"><p><a href="qtwidgets-painting-affine-example.html">Affine Transformations</a></p></td><td class="tblDescr"><p>Demonstrates how affine transformations in QPainter works.</p></td></tr> <tr class="even topAlign"><td class="tblName"><p><a href="qtwidgets-painting-basicdrawing-example.html">Basic Drawing Example</a></p></td><td class="tblDescr"><p>The Basic Drawing example shows how to display basic graphics primitives in a variety of styles using the QPainter class.</p></td></tr> <tr class="odd topAlign"><td class="tblName"><p><a href="qtwidgets-painting-composition-example.html">Composition Modes</a></p></td><td class="tblDescr"><p>Demonstrates how Composition Modes work in QPainter.</p></td></tr> <tr class="even topAlign"><td class="tblName"><p><a href="qtwidgets-painting-concentriccircles-example.html">Concentric Circles Example</a></p></td><td class="tblDescr"><p>Demonstrates the improved quality that antialiasing and floating point precision gives.</p></td></tr> <tr class="odd topAlign"><td class="tblName"><p><a href="qtwidgets-painting-fontsampler-example.html">Font Sampler Example</a></p></td><td class="tblDescr"><p>The Font Sampler example shows how to preview and print multi-page documents.</p></td></tr> <tr class="even topAlign"><td class="tblName"><p><a href="qtwidgets-painting-gradients-example.html">Gradients</a></p></td><td class="tblDescr"><p>Shows how gradients can be used with QPainter.</p></td></tr> <tr class="odd topAlign"><td class="tblName"><p><a href="qtwidgets-painting-imagecomposition-example.html">Image Composition Example</a></p></td><td class="tblDescr"><p>Shows how composition modes work in QPainter.</p></td></tr> <tr class="even topAlign"><td class="tblName"><p><a href="qtwidgets-painting-painterpaths-example.html">Painter Paths Example</a></p></td><td class="tblDescr"><p>The Painter Paths example shows how painter paths can be used to beuild complex shapes for rendering.</p></td></tr> <tr class="odd topAlign"><td class="tblName"><p><a href="qtwidgets-painting-pathstroke-example.html">Path Stroking</a></p></td><td class="tblDescr"><p>The Path Stroking example shows various types of pens that can be used with QPainter.</p></td></tr> <tr class="even topAlign"><td class="tblName"><p><a href="qtwidgets-painting-transformations-example.html">Transformations Example</a></p></td><td class="tblDescr"><p>The Transformations example shows how transformations influence the way that QPainter renders graphics primitives.</p></td></tr> <tr class="odd topAlign"><td class="tblName"><p><a href="qtwidgets-painting-deform-example.html">Vector Deformation</a></p></td><td class="tblDescr"><p>Demonstrates how to manipulate the elements of a QPainterPath.</p></td></tr> </table></div> </div> </div> </div> </div> </div> <div class="footer"> <p> <acronym title="Copyright">©</acronym> 2018 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners.<br/> The documentation provided herein is licensed under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation License version 1.3</a> as published by the Free Software Foundation.<br/> Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners. </p> </div> </body> </html>