<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- qgraphicsview.cpp --> <title>Obsolete Members for QGraphicsView | Qt Widgets 5.9</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 >Qt 5.9</td><td ><a href="qtwidgets-index.html">Qt Widgets</a></td><td ><a href="qtwidgets-module.html">C++ Classes</a></td><td >QGraphicsView</td></tr></table><table class="buildversion"><tr> <td id="buildversion" width="100%" align="right">Qt 5.9.4 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">Obsolete Members for QGraphicsView</h1> <p><b>The following members of class <a href="qgraphicsview.html">QGraphicsView</a> are obsolete.</b> They are provided to keep old source code working. We strongly advise against using them in new code.</p> <h2>Protected Functions</h2> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code>virtual void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsview-obsolete.html#drawItems">drawItems</a></b>(QPainter *<i>painter</i>, int <i>numItems</i>, QGraphicsItem *[] <i>items</i>, const QStyleOptionGraphicsItem[] <i>options</i>)</td></tr> </table></div> <h2>Member Function Documentation</h2> <!-- $$$drawItems[overload1]$$$drawItemsQPainter*intQGraphicsItem*[]constQStyleOptionGraphicsItem[] --> <h3 class="fn" id="drawItems"><a name="drawItems"></a><code>[virtual protected] </code><span class="type">void</span> QGraphicsView::<span class="name">drawItems</span>(<span class="type"><a href="../qtgui/qpainter.html">QPainter</a></span> *<i>painter</i>, <span class="type">int</span> <i>numItems</i>, <span class="type"><a href="qgraphicsitem.html">QGraphicsItem</a></span> *[] <i>items</i>, const <span class="type"><a href="qstyleoptiongraphicsitem.html">QStyleOptionGraphicsItem</a></span>[] <i>options</i>)</h3> <p>Draws the items <i>items</i> in the scene using <i>painter</i>, after the background and before the foreground are drawn. <i>numItems</i> is the number of items in <i>items</i> and options in <i>options</i>. <i>options</i> is a list of styleoptions; one for each item. Reimplement this function to provide custom item drawing for this view.</p> <p>The default implementation calls the scene's drawItems() function.</p> <p>Since Qt 4.6, this function is not called anymore unless the <a href="qgraphicsview.html#OptimizationFlag-enum">QGraphicsView::IndirectPainting</a> flag is given as an Optimization flag.</p> <p><b>See also </b><a href="qgraphicsview.html#drawForeground">drawForeground</a>(), <a href="qgraphicsview.html#drawBackground">drawBackground</a>(), and <a href="qgraphicsscene-obsolete.html#drawItems">QGraphicsScene::drawItems</a>().</p> <!-- @@@drawItems --> </div> </div> </div> </div> </div> <div class="footer"> <p> <acronym title="Copyright">©</acronym> 2017 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>