This file is indexed.

/usr/share/qt5/doc/qtdoc/topics-graphics.html is in qt5-doc-html 5.2.1-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- graphics.qdoc -->
  <title>Graphics | QtDoc 5.2</title>
  <link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
    <div class="main">
    <div class="main-rounded">
        <div class="navigationbar">
        <ul>
<li><a href="index.html">Qt 5.2</a></li>
<li>Graphics</li>
<li id="buildversion">
Qt 5.2.1 Reference Documentation</li>
    </ul>
    </div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#2d-graphics-with-qpainter">2D graphics with QPainter</a></li>
<li class="level1"><a href="#opengl-and-3d">OpenGL and 3D</a></li>
<li class="level1"><a href="#qt-quick-scene-graph">Qt Quick scene graph</a></li>
<li class="level1"><a href="#printing">Printing</a></li>
<li class="level1"><a href="#images">Images</a></li>
</ul>
</div>
<h1 class="title">Graphics</h1>
<span class="subtitle"></span>
<!-- $$$topics-graphics.html-description -->
<div class="descr"> <a name="details"></a>
<p>Graphics in Qt 5 is primarily done either through the imperative <a href="../qtgui/qpainter.html">QPainter</a> API, or through Qt’s declarative UI language, Qt Quick, and its scene graph back-end. Qt 5's graphics capabilities also includes support for printing, as well as the loading and saving of various image formats.</p>
<a name="2d-graphics-with-qpainter"></a>
<h2>2D graphics with QPainter</h2>
<p><a href="../qtgui/qpainter.html">QPainter</a> provides API for drawing vector graphics, text and images onto different surfaces, or <a href="../qtgui/qpaintdevice.html">QPaintDevice</a> instances, such as <a href="../qtgui/qimage.html">QImage</a>, <a href="../qtgui/qopenglpaintdevice.html">QOpenGLPaintDevice</a>, <a href="../qtwidgets/qwidget.html">QWidget</a>, and <a href="../qtprintsupport/qprinter.html">QPrinter</a>. The actual drawing happens in the <a href="../qtgui/qpaintdevice.html">QPaintDevice</a>'s <a href="../qtgui/qpaintengine.html">QPaintEngine</a>. The software rasterizer and the <a href="../qtopengl/opengl-module.html">OpenGL</a> (ES) 2.0 back-ends are the two most important <a href="../qtgui/qpaintengine.html">QPaintEngine</a> implementations. The raster paint engine is Qt’s software rasterizer, and is used when drawing on a <a href="../qtgui/qimage.html">QImage</a> or <a href="../qtwidgets/qwidget.html">QWidget</a>. Its strength over the <a href="../qtopengl/opengl-module.html">OpenGL</a> paint engine is its high quality when antialiasing is enabled, and a complete feature set.</p>
<ul>
<li><a href="../qtgui/paintsystem.html">Paint System</a> - Overview over the <a href="../qtgui/qpainter.html">QPainter</a> classes and architecture.</li>
<li><a href="../qtgui/coordsys.html">Coordinate System</a> - Explains how <a href="../qtgui/qpainter.html">QPainter</a>'s coordinate system works.</li>
<li><a href="../qtgui/paintsystem-drawing.html">Drawing and Filling</a> - Explains how <a href="../qtgui/qpainter.html">QPainter</a> performs filling and outlining of vector shapes.</li>
</ul>
<p>The most important rendering targets for <a href="../qtgui/qpainter.html">QPainter</a> are:</p>
<ul>
<li><a href="../qtgui/qimage.html">QImage</a> - A hardware-independent image representation with direct pixel access. <a href="../qtgui/qpainter.html">QPainter</a> will use the software rasterizer to draw to <a href="../qtgui/qimage.html">QImage</a> instances.</li>
<li><a href="../qtgui/qpixmap.html">QPixmap</a> - A image representation suited for display on screen. <a href="../qtgui/qpainter.html">QPainter</a> will primarily use the software rasterizer to draw to <a href="../qtgui/qpixmap.html">QPixmap</a> instances.</li>
<li><a href="../qtgui/qopenglpaintdevice.html">QOpenGLPaintDevice</a> - A paint device to render to the current <a href="../qtopengl/opengl-module.html">OpenGL</a> (ES) 2.0 context. <a href="../qtgui/qpainter.html">QPainter</a> will use hardware accellerated <a href="../qtopengl/opengl-module.html">OpenGL</a> calls to draw to <a href="../qtgui/qopenglpaintdevice.html">QOpenGLPaintDevice</a> instances.</li>
<li><a href="../qtgui/qbackingstore.html">QBackingStore</a> - A backbuffer for top-level windows. <a href="../qtgui/qpainter.html">QPainter</a> will primarily use the software rasterizer to draw to <a href="../qtgui/qbackingstore.html">QBackingStore</a> instances.</li>
<li><a href="../qtwidgets/qwidget.html">QWidget</a> - A baseclass for pre-Qt Quick user interface classes. <a href="../qtgui/qpainter.html">QPainter</a> will render widgets using a <a href="../qtgui/qbackingstore.html">QBackingStore</a>.</li>
</ul>
<p><a href="../qtgui/qpainter.html">QPainter</a> and related classes are part of the <a href="../qtgui/qtgui-index.html">Qt GUI</a> module.</p>
<a name="opengl-and-3d"></a>
<h2>OpenGL and 3D</h2>
<p><a href="../qtopengl/opengl-module.html">OpenGL</a> is the most widely adopted graphics API for hardware accelerated and 3D graphics, implemented on all desktop platforms and almost every mobile and embedded platform. The Qt library contains a number of classes that help users integrate <a href="../qtopengl/opengl-module.html">OpenGL</a> into their applications.</p>
<ul>
<li><a href="../qtgui/qtgui-index.html">OpenGL in Qt GUI</a> - An overview of how <a href="../qtopengl/opengl-module.html">OpenGL</a> integrates with the <a href="../qtgui/qtgui-index.html">Qt GUI</a> module.</li>
<li><a href="../qtquick/qtquick-visualcanvas-scenegraph.html#mixing-scene-graph-and-opengl">OpenGL and Qt Quick 2.0</a> - How to integrate <a href="../qtopengl/opengl-module.html">OpenGL</a> into a the Qt Quick 2.0 scene graph.</li>
<li><a href="http://www.khronos.org/opengl">www.khronos.org/opengl</a> - The offical <a href="../qtopengl/opengl-module.html">OpenGL</a> pages.</li>
</ul>
<p>Prior to Qt 5.0, <a href="../qtopengl/opengl-module.html">OpenGL</a> support in Qt was handled by the <a href="../qtopengl/qtopengl-index.html">Qt OpenGL</a> module. This module is still present, but new code should aim to use the new classes in the <a href="../qtgui/qtgui-index.html">Qt GUI</a> module.</p>
<a name="qt-quick-scene-graph"></a>
<h2>Qt Quick scene graph</h2>
<p>Qt Quick 2.0 introduces an <a href="../qtopengl/opengl-module.html">OpenGL</a> (ES) 2.0 scene graph for rendering. It generally improves the performance of Qt Quick 2.0 significantly compared to the <a href="../qtwidgets/qgraphicsview.html">QGraphicsView</a>/<a href="../qtgui/qpainter.html">QPainter</a>-based apprach used in earlier versions.</p>
<p>The scene graph is a graphical representation of the Item scene. It can be thought of as a graphical deep copy, an independent structure that contains enough information to render all the items. Once it has been set up, it can be manipulated and rendered independently of the state of the items. On many platforms, the scene graph will even be rendered on a dedicated render thread while the GUI thread is preparing the next frame's state.</p>
<p>The scene graph is used when you import <a href="../qtquick/qtquick-module.html">QtQuick</a> 2.0 in your QML file, and use <a href="../qtquick/qquickview.html">QQuickView</a> to run it.</p>
<ul>
<li><a href="../qtquick/qtquick-visualcanvas-scenegraph.html">Qt Quick Scene Graph</a> - Overview of the Qt Quick Scene Graph architecture.</li>
<li><a href="../qtquick/qtquick-visualcanvas-scenegraph.html#scene-graph-and-rendering">Scene Graph and Rendering</a> - Breakdown of the rendering of each frame.</li>
</ul>
<p>Qt Quick can be mixed with raw <a href="../qtopengl/opengl-module.html">OpenGL</a> rendering by connecting to the signals <a href="../qtquick/qquickwindow.html#beforeRendering">QQuickWindow::beforeRendering</a>() or <a href="../qtquick/qquickwindow.html#afterRendering">QQuickWindow::afterRendering</a>() which are emitted before and after the Qt Quick scene graph is rendered, respectively. There signals are emitted from the render thread (when applicable), and the connections need to be direct.</p>
<a name="printing"></a>
<h2>Printing</h2>
<p>Qt supports printing both directly to actual printers, locally or on the network, as well as producing PDF output. How to do printing with Qt is described in detail on the <a href="../qtprintsupport/qtprintsupport-index.html">Qt Print Support</a> page.</p>
<p>To be able to access the Qt printing classes from your application or library, see the <a href="../qtprintsupport/qtprintsupport-index.html">Qt Print Support</a> module page.</p>
<a name="images"></a>
<h2>Images</h2>
<p>Qt supports convenient reading, writing, and manipulating of images through the <a href="../qtgui/qimage.html">QImage</a> class. In addition, for more fine grained control of how images are loaded or saved, you can use the <a href="../qtgui/qimagereader.html">QImageReader</a> and <a href="../qtgui/qimagewriter.html">QImageWriter</a> classes respectively. To add support for additional image formats, outside of the ones provided by Qt, you can create image format plugins by using <a href="../qtgui/qimageiohandler.html">QImageIOHandler</a> and <a href="../qtgui/qimageioplugin.html">QImageIOPlugin</a>.</p>
<p>See the <a href="../qtgui/paintsystem-images.html">Reading and Writing Image Files</a> page for more information.</p>
</div>
<p><b>See also </b><a href="../qtgui/paintsystem.html">Paint System</a>.</p>
<!-- @@@topics-graphics.html -->
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2013 Digia Plc and/or its
   subsidiaries. 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>    Digia, Qt and their respective logos are trademarks of Digia Plc     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>