This file is indexed.

/usr/share/qt5/doc/qtcharts/qlegend.html is in qtcharts5-doc-html 5.9.5-0ubuntu1.

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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qlegend.cpp -->
  <title>QLegend Class | Qt Charts 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="qtcharts-index.html">Qt Charts</a></td><td ><a href="qt-charts-module.html">C++ Classes</a></td><td >QLegend</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right">Qt 5.9.5 Reference Documentation</td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-types">Public Types</a></li>
<li class="level1"><a href="#properties">Properties</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#signals">Signals</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">QLegend Class</h1>
<!-- $$$QLegend-brief -->
<p>The <a href="qlegend.html">QLegend</a> class displays the legend of a chart. <a href="#details">More...</a></p>
<!-- @@@QLegend -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;QLegend&gt;</span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Instantiated By:</td><td class="memItemRight bottomAlign"> <a href="qml-qtcharts-legend.html">Legend</a></td></tr></table></div><ul>
<li><a href="qlegend-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-types"></a>
<h2 id="public-types">Public Types</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qlegend.html#MarkerShape-enum">MarkerShape</a></b> { MarkerShapeDefault, MarkerShapeRectangle, MarkerShapeCircle, MarkerShapeFromSeries }</td></tr>
</table></div>
<a name="properties"></a>
<h2 id="properties">Properties</h2>
<div class="table"><table class="propsummary">
<tr><td class="topAlign"><ul>
<li class="fn"><b><a href="qlegend.html#alignment-prop">alignment</a></b> : Qt::Alignment</li>
<li class="fn"><b><a href="qlegend.html#backgroundVisible-prop">backgroundVisible</a></b> : bool</li>
<li class="fn"><b><a href="qlegend.html#borderColor-prop">borderColor</a></b> : QColor</li>
<li class="fn"><b><a href="qlegend.html#color-prop">color</a></b> : QColor</li>
<li class="fn"><b><a href="qlegend.html#font-prop">font</a></b> : QFont</li>
</ul></td><td class="topAlign"><ul>
<li class="fn"><b><a href="qlegend.html#labelColor-prop">labelColor</a></b> : QColor</li>
<li class="fn"><b><a href="qlegend.html#markerShape-prop">markerShape</a></b> : MarkerShape</li>
<li class="fn"><b><a href="qlegend.html#reverseMarkers-prop">reverseMarkers</a></b> : bool</li>
<li class="fn"><b><a href="qlegend.html#showToolTips-prop">showToolTips</a></b> : bool</li>
</ul>
</td></tr>
</table></div>
<a name="public-functions"></a>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qlegend.html#dtor.QLegend">~QLegend</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Qt::Alignment </td><td class="memItemRight bottomAlign"><b><a href="qlegend.html#alignment-prop">alignment</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlegend.html#attachToChart">attachToChart</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QColor </td><td class="memItemRight bottomAlign"><b><a href="qlegend.html#borderColor-prop">borderColor</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QBrush </td><td class="memItemRight bottomAlign"><b><a href="qlegend.html#brush">brush</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QColor </td><td class="memItemRight bottomAlign"><b><a href="qlegend.html#color-prop">color</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlegend.html#detachFromChart">detachFromChart</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QFont </td><td class="memItemRight bottomAlign"><b><a href="qlegend.html#font-prop">font</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qlegend.html#isAttachedToChart">isAttachedToChart</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qlegend.html#isBackgroundVisible">isBackgroundVisible</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QBrush </td><td class="memItemRight bottomAlign"><b><a href="qlegend.html#labelBrush">labelBrush</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QColor </td><td class="memItemRight bottomAlign"><b><a href="qlegend.html#labelColor-prop">labelColor</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> MarkerShape </td><td class="memItemRight bottomAlign"><b><a href="qlegend.html#markerShape-prop">markerShape</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QList&lt;QLegendMarker *&gt; </td><td class="memItemRight bottomAlign"><b><a href="qlegend.html#markers">markers</a></b>(QAbstractSeries *<i>series</i> = Q_NULLPTR) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPen </td><td class="memItemRight bottomAlign"><b><a href="qlegend.html#pen">pen</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qlegend.html#reverseMarkers-prop">reverseMarkers</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlegend.html#alignment-prop">setAlignment</a></b>(Qt::Alignment <i>alignment</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlegend.html#setBackgroundVisible">setBackgroundVisible</a></b>(bool <i>visible</i> = true)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlegend.html#borderColor-prop">setBorderColor</a></b>(QColor <i>color</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlegend.html#setBrush">setBrush</a></b>(const QBrush &amp;<i>brush</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlegend.html#color-prop">setColor</a></b>(QColor <i>color</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlegend.html#font-prop">setFont</a></b>(const QFont &amp;<i>font</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlegend.html#setLabelBrush">setLabelBrush</a></b>(const QBrush &amp;<i>brush</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlegend.html#labelColor-prop">setLabelColor</a></b>(QColor <i>color</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlegend.html#markerShape-prop">setMarkerShape</a></b>(MarkerShape <i>shape</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlegend.html#setPen">setPen</a></b>(const QPen &amp;<i>pen</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlegend.html#reverseMarkers-prop">setReverseMarkers</a></b>(bool <i>reverseMarkers</i> = true)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlegend.html#setShowToolTips">setShowToolTips</a></b>(bool <i>show</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qlegend.html#showToolTips">showToolTips</a></b>() const</td></tr>
</table></div>
<a name="signals"></a>
<h2 id="signals">Signals</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlegend.html#backgroundVisibleChanged">backgroundVisibleChanged</a></b>(bool <i>visible</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlegend.html#borderColorChanged">borderColorChanged</a></b>(QColor <i>color</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlegend.html#colorChanged">colorChanged</a></b>(QColor <i>color</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlegend.html#fontChanged">fontChanged</a></b>(QFont <i>font</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlegend.html#labelColorChanged">labelColorChanged</a></b>(QColor <i>color</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlegend.html#markerShape-prop">markerShapeChanged</a></b>(MarkerShape <i>shape</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlegend.html#reverseMarkersChanged">reverseMarkersChanged</a></b>(bool <i>reverseMarkers</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlegend.html#showToolTipsChanged">showToolTipsChanged</a></b>(bool <i>showToolTips</i>)</td></tr>
</table></div>
<a name="details"></a>
<!-- $$$QLegend-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="qlegend.html">QLegend</a> class displays the legend of a chart.</p>
<p>A legend is a graphical object that displays the legend of a chart. The legend state is updated by <a href="qchart.html">QChart</a> when series change. By default, the legend is attached to the chart, but it can be detached to make it independent of chart layout. Legend objects cannot be created or deleted, but they can be referenced via the <a href="qchart.html">QChart</a> class.</p>
<p class="centerAlign"><img src="images/examples_percentbarchart_legend.png" alt="" /></p></div>
<p><b>See also </b><a href="qchart.html">QChart</a>.</p>
<!-- @@@QLegend -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$MarkerShape$$$MarkerShapeDefault$$$MarkerShapeRectangle$$$MarkerShapeCircle$$$MarkerShapeFromSeries -->
<h3 class="fn" id="MarkerShape-enum"><a name="MarkerShape-enum"></a>enum QLegend::<span class="name">MarkerShape</span></h3>
<p>This enum describes the shape used when rendering legend marker items.</p>
<div class="table"><table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><code>QLegend::MarkerShapeDefault</code></td><td class="topAlign tblval"><code>0</code></td><td class="topAlign">Default shape determined by <a href="qlegend.html">QLegend</a> is used for the marker. This value is supported only for individual <a href="qlegendmarker.html">QLegendMarker</a> items.</td></tr>
<tr><td class="topAlign"><code>QLegend::MarkerShapeRectangle</code></td><td class="topAlign tblval"><code>1</code></td><td class="topAlign">Rectangular markers are used. Marker size is determined by font size.</td></tr>
<tr><td class="topAlign"><code>QLegend::MarkerShapeCircle</code></td><td class="topAlign tblval"><code>2</code></td><td class="topAlign">Circular markers are used. Marker size is determined by font size.</td></tr>
<tr><td class="topAlign"><code>QLegend::MarkerShapeFromSeries</code></td><td class="topAlign tblval"><code>3</code></td><td class="topAlign">The marker shape is determined by the series. In case of a scatter series, the legend marker looks like a scatter dot and is the same size as the dot. In case of a line or spline series, the legend marker looks like a small segment of the line. For other series types, rectangular markers are shown.</td></tr>
</table></div>
<p><b>See also </b><a href="qlegend.html#markerShape-prop">markerShape</a>.</p>
<!-- @@@MarkerShape -->
</div>
<div class="prop">
<h2>Property Documentation</h2>
<!-- $$$alignment-prop$$$alignment$$$setAlignmentQt::Alignment -->
<h3 class="fn" id="alignment-prop"><a name="alignment-prop"></a><span class="name">alignment</span> : <span class="type">Qt::Alignment</span></h3>
<p>How the legend is aligned with the chart.</p>
<p>Can be Qt::AlignTop, Qt::AlignBottom, Qt::AlignLeft, Qt::AlignRight. If you set more than one flag, the result is undefined.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> Qt::Alignment </td><td class="memItemRight bottomAlign"><span class="name"><b>alignment</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAlignment</b></span>(Qt::Alignment <i>alignment</i>)</td></tr>
</table></div>
<!-- @@@alignment -->
<!-- $$$backgroundVisible-prop$$$isBackgroundVisible$$$setBackgroundVisiblebool$$$backgroundVisibleChangedbool -->
<h3 class="fn" id="backgroundVisible-prop"><a name="backgroundVisible-prop"></a><span class="name">backgroundVisible</span> : <span class="type">bool</span></h3>
<p>This property holds whether the legend background is visible.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qlegend.html#isBackgroundVisible">isBackgroundVisible</a></b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qlegend.html#setBackgroundVisible">setBackgroundVisible</a></b></span>(bool <i>visible</i> = true)</td></tr>
</table></div>
<p><b>Notifier signal:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qlegend.html#backgroundVisibleChanged">backgroundVisibleChanged</a></b></span>(bool <i>visible</i>)</td></tr>
</table></div>
<!-- @@@backgroundVisible -->
<!-- $$$borderColor-prop$$$borderColor$$$setBorderColorQColor$$$borderColorChangedQColor -->
<h3 class="fn" id="borderColor-prop"><a name="borderColor-prop"></a><span class="name">borderColor</span> : <span class="type">QColor</span></h3>
<p>This property holds the line color of the legend.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>borderColor</b></span>()</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setBorderColor</b></span>(QColor <i>color</i>)</td></tr>
</table></div>
<p><b>Notifier signal:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qlegend.html#borderColorChanged">borderColorChanged</a></b></span>(QColor <i>color</i>)</td></tr>
</table></div>
<!-- @@@borderColor -->
<!-- $$$color-prop$$$color$$$setColorQColor$$$colorChangedQColor -->
<h3 class="fn" id="color-prop"><a name="color-prop"></a><span class="name">color</span> : <span class="type">QColor</span></h3>
<p>This property holds the background (brush) color of the legend.</p>
<p>If you change the color of the legend, the style of the legend brush is set to Qt::SolidPattern.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>color</b></span>()</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setColor</b></span>(QColor <i>color</i>)</td></tr>
</table></div>
<p><b>Notifier signal:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qlegend.html#colorChanged">colorChanged</a></b></span>(QColor <i>color</i>)</td></tr>
</table></div>
<!-- @@@color -->
<!-- $$$font-prop$$$font$$$setFontconstQFont&$$$fontChangedQFont -->
<h3 class="fn" id="font-prop"><a name="font-prop"></a><span class="name">font</span> : <span class="type">QFont</span></h3>
<p>This property holds the font of the markers used by the legend.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QFont </td><td class="memItemRight bottomAlign"><span class="name"><b>font</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setFont</b></span>(const QFont &amp;<i>font</i>)</td></tr>
</table></div>
<p><b>Notifier signal:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qlegend.html#fontChanged">fontChanged</a></b></span>(QFont <i>font</i>)</td></tr>
</table></div>
<!-- @@@font -->
<!-- $$$labelColor-prop$$$labelColor$$$setLabelColorQColor$$$labelColorChangedQColor -->
<h3 class="fn" id="labelColor-prop"><a name="labelColor-prop"></a><span class="name">labelColor</span> : <span class="type">QColor</span></h3>
<p>This property holds the color of the brush used to draw labels.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QColor </td><td class="memItemRight bottomAlign"><span class="name"><b>labelColor</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setLabelColor</b></span>(QColor <i>color</i>)</td></tr>
</table></div>
<p><b>Notifier signal:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qlegend.html#labelColorChanged">labelColorChanged</a></b></span>(QColor <i>color</i>)</td></tr>
</table></div>
<!-- @@@labelColor -->
<!-- $$$markerShape-prop$$$markerShape$$$setMarkerShapeMarkerShape$$$markerShapeChangedMarkerShape -->
<h3 class="fn" id="markerShape-prop"><a name="markerShape-prop"></a><span class="name">markerShape</span> : <span class="type"><a href="qlegend.html#MarkerShape-enum">MarkerShape</a></span></h3>
<p>The default shape of the legend markers. The default value is <code>MarkerShapeRectangle</code>.</p>
<p>This property was introduced in  Qt 5.9.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> MarkerShape </td><td class="memItemRight bottomAlign"><span class="name"><b>markerShape</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMarkerShape</b></span>(MarkerShape <i>shape</i>)</td></tr>
</table></div>
<p><b>Notifier signal:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>markerShapeChanged</b></span>(MarkerShape <i>shape</i>)</td></tr>
</table></div>
<!-- @@@markerShape -->
<!-- $$$reverseMarkers-prop$$$reverseMarkers$$$setReverseMarkersbool$$$reverseMarkersChangedbool -->
<h3 class="fn" id="reverseMarkers-prop"><a name="reverseMarkers-prop"></a><span class="name">reverseMarkers</span> : <span class="type">bool</span></h3>
<p>This property holds whether reverse order is used for the markers in the legend.</p>
<p>This property is <code>false</code> by default.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>reverseMarkers</b></span>()</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setReverseMarkers</b></span>(bool <i>reverseMarkers</i> = true)</td></tr>
</table></div>
<p><b>Notifier signal:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qlegend.html#reverseMarkersChanged">reverseMarkersChanged</a></b></span>(bool <i>reverseMarkers</i>)</td></tr>
</table></div>
<!-- @@@reverseMarkers -->
<!-- $$$showToolTips-prop$$$showToolTips$$$setShowToolTipsbool$$$showToolTipsChangedbool -->
<h3 class="fn" id="showToolTips-prop"><a name="showToolTips-prop"></a><span class="name">showToolTips</span> : <span class="type">bool</span></h3>
<p>This property holds whether tooltips are shown when the text is truncated.</p>
<p>This property is <code>false</code> by default.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qlegend.html#showToolTips">showToolTips</a></b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qlegend.html#setShowToolTips">setShowToolTips</a></b></span>(bool <i>show</i>)</td></tr>
</table></div>
<p><b>Notifier signal:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qlegend.html#showToolTipsChanged">showToolTipsChanged</a></b></span>(bool <i>showToolTips</i>)</td></tr>
</table></div>
<!-- @@@showToolTips -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$~QLegend[overload1]$$$~QLegend -->
<h3 class="fn" id="dtor.QLegend"><a name="dtor.QLegend"></a>QLegend::<span class="name">~QLegend</span>()</h3>
<p>Destroys the legend object. The legend is always owned by a <a href="qchart.html">QChart</a>, so an application should never call this function.</p>
<!-- @@@~QLegend -->
<!-- $$$attachToChart[overload1]$$$attachToChart -->
<h3 class="fn" id="attachToChart"><a name="attachToChart"></a><span class="type">void</span> QLegend::<span class="name">attachToChart</span>()</h3>
<p>Attaches the legend to a chart. The chart may adjust the layout of the legend.</p>
<!-- @@@attachToChart -->
<!-- $$$backgroundVisibleChanged -->
<h3 class="fn" id="backgroundVisibleChanged"><a name="backgroundVisibleChanged"></a><code>[signal] </code><span class="type">void</span> QLegend::<span class="name">backgroundVisibleChanged</span>(<span class="type">bool</span> <i>visible</i>)</h3>
<p>This signal is emitted when the visibility of the legend background changes to <i>visible</i>.</p>
<p><b>Note:</b> Notifier signal for property <a href="qlegend.html#backgroundVisible-prop">backgroundVisible</a>. </p><!-- @@@backgroundVisibleChanged -->
<!-- $$$borderColorChanged -->
<h3 class="fn" id="borderColorChanged"><a name="borderColorChanged"></a><code>[signal] </code><span class="type">void</span> QLegend::<span class="name">borderColorChanged</span>(<span class="type">QColor</span> <i>color</i>)</h3>
<p>This signal is emitted when the border color of the legend background changes to <i>color</i>.</p>
<p><b>Note:</b> Notifier signal for property <a href="qlegend.html#borderColor-prop">borderColor</a>. </p><!-- @@@borderColorChanged -->
<!-- $$$brush[overload1]$$$brush -->
<h3 class="fn" id="brush"><a name="brush"></a><span class="type">QBrush</span> QLegend::<span class="name">brush</span>() const</h3>
<p>Returns the brush used by the legend.</p>
<p><b>See also </b><a href="qlegend.html#setBrush">setBrush</a>().</p>
<!-- @@@brush -->
<!-- $$$colorChanged -->
<h3 class="fn" id="colorChanged"><a name="colorChanged"></a><code>[signal] </code><span class="type">void</span> QLegend::<span class="name">colorChanged</span>(<span class="type">QColor</span> <i>color</i>)</h3>
<p>This signal is emitted when the color of the legend background changes to <i>color</i>.</p>
<p><b>Note:</b> Notifier signal for property <a href="qlegend.html#color-prop">color</a>. </p><!-- @@@colorChanged -->
<!-- $$$detachFromChart[overload1]$$$detachFromChart -->
<h3 class="fn" id="detachFromChart"><a name="detachFromChart"></a><span class="type">void</span> QLegend::<span class="name">detachFromChart</span>()</h3>
<p>Detaches the legend from the chart. The chart will no longer adjust the layout of the legend.</p>
<!-- @@@detachFromChart -->
<!-- $$$fontChanged -->
<h3 class="fn" id="fontChanged"><a name="fontChanged"></a><code>[signal] </code><span class="type">void</span> QLegend::<span class="name">fontChanged</span>(<span class="type">QFont</span> <i>font</i>)</h3>
<p>This signal is emitted when the font of the markers of the legend changes to <i>font</i>.</p>
<p><b>Note:</b> Notifier signal for property <a href="qlegend.html#font-prop">font</a>. </p><!-- @@@fontChanged -->
<!-- $$$isAttachedToChart[overload1]$$$isAttachedToChart -->
<h3 class="fn" id="isAttachedToChart"><a name="isAttachedToChart"></a><span class="type">bool</span> QLegend::<span class="name">isAttachedToChart</span>()</h3>
<p>Returns <code>true</code>, if the legend is attached to a chart.</p>
<!-- @@@isAttachedToChart -->
<!-- $$$isBackgroundVisible -->
<h3 class="fn" id="isBackgroundVisible"><a name="isBackgroundVisible"></a><span class="type">bool</span> QLegend::<span class="name">isBackgroundVisible</span>() const</h3>
<p>Returns the visibility of the legend background.</p>
<p><b>Note:</b> Getter function for property <a href="qlegend.html#backgroundVisible-prop">backgroundVisible</a>. </p><!-- @@@isBackgroundVisible -->
<!-- $$$labelBrush[overload1]$$$labelBrush -->
<h3 class="fn" id="labelBrush"><a name="labelBrush"></a><span class="type">QBrush</span> QLegend::<span class="name">labelBrush</span>() const</h3>
<p>Returns the brush used to draw labels.</p>
<p><b>See also </b><a href="qlegend.html#setLabelBrush">setLabelBrush</a>().</p>
<!-- @@@labelBrush -->
<!-- $$$labelColorChanged -->
<h3 class="fn" id="labelColorChanged"><a name="labelColorChanged"></a><code>[signal] </code><span class="type">void</span> QLegend::<span class="name">labelColorChanged</span>(<span class="type">QColor</span> <i>color</i>)</h3>
<p>This signal is emitted when the color of the brush used to draw the legend labels changes to <i>color</i>.</p>
<p><b>Note:</b> Notifier signal for property <a href="qlegend.html#labelColor-prop">labelColor</a>. </p><!-- @@@labelColorChanged -->
<!-- $$$markers[overload1]$$$markersQAbstractSeries* -->
<h3 class="fn" id="markers"><a name="markers"></a><span class="type">QList</span>&lt;<span class="type"><a href="qlegendmarker.html">QLegendMarker</a></span> *&gt; QLegend::<span class="name">markers</span>(<span class="type"><a href="qabstractseries.html">QAbstractSeries</a></span> *<i>series</i> = Q_NULLPTR) const</h3>
<p>Returns the list of markers in the legend. The list can be filtered by specifying the <i>series</i> for which the markers are returned.</p>
<!-- @@@markers -->
<!-- $$$pen[overload1]$$$pen -->
<h3 class="fn" id="pen"><a name="pen"></a><span class="type">QPen</span> QLegend::<span class="name">pen</span>() const</h3>
<p>Returns the pen used by the legend.</p>
<p><b>See also </b><a href="qlegend.html#setPen">setPen</a>().</p>
<!-- @@@pen -->
<!-- $$$reverseMarkersChanged -->
<h3 class="fn" id="reverseMarkersChanged"><a name="reverseMarkersChanged"></a><code>[signal] </code><span class="type">void</span> QLegend::<span class="name">reverseMarkersChanged</span>(<span class="type">bool</span> <i>reverseMarkers</i>)</h3>
<p>This signal is emitted when the use of reverse order for the markers in the legend is changed to <i>reverseMarkers</i>.</p>
<p><b>Note:</b> Notifier signal for property <a href="qlegend.html#reverseMarkers-prop">reverseMarkers</a>. </p><!-- @@@reverseMarkersChanged -->
<!-- $$$setBackgroundVisible -->
<h3 class="fn" id="setBackgroundVisible"><a name="setBackgroundVisible"></a><span class="type">void</span> QLegend::<span class="name">setBackgroundVisible</span>(<span class="type">bool</span> <i>visible</i> = true)</h3>
<p>Sets the visibility of the legend background to <i>visible</i>.</p>
<p><b>Note:</b> Setter function for property <a href="qlegend.html#backgroundVisible-prop">backgroundVisible</a>. </p><p><b>See also </b><a href="qlegend.html#isBackgroundVisible">isBackgroundVisible</a>().</p>
<!-- @@@setBackgroundVisible -->
<!-- $$$setBrush[overload1]$$$setBrushconstQBrush& -->
<h3 class="fn" id="setBrush"><a name="setBrush"></a><span class="type">void</span> QLegend::<span class="name">setBrush</span>(const <span class="type">QBrush</span> &amp;<i>brush</i>)</h3>
<p>Sets the <i>brush</i> that is used to draw the background of the legend.</p>
<p><b>See also </b><a href="qlegend.html#brush">brush</a>().</p>
<!-- @@@setBrush -->
<!-- $$$setLabelBrush[overload1]$$$setLabelBrushconstQBrush& -->
<h3 class="fn" id="setLabelBrush"><a name="setLabelBrush"></a><span class="type">void</span> QLegend::<span class="name">setLabelBrush</span>(const <span class="type">QBrush</span> &amp;<i>brush</i>)</h3>
<p>Sets the brush used to draw the legend labels to <i>brush</i>.</p>
<p><b>See also </b><a href="qlegend.html#labelBrush">labelBrush</a>().</p>
<!-- @@@setLabelBrush -->
<!-- $$$setPen[overload1]$$$setPenconstQPen& -->
<h3 class="fn" id="setPen"><a name="setPen"></a><span class="type">void</span> QLegend::<span class="name">setPen</span>(const <span class="type">QPen</span> &amp;<i>pen</i>)</h3>
<p>Sets the <i>pen</i> that is used to draw the legend borders.</p>
<p><b>See also </b><a href="qlegend.html#pen">pen</a>().</p>
<!-- @@@setPen -->
<!-- $$$setShowToolTips -->
<h3 class="fn" id="setShowToolTips"><a name="setShowToolTips"></a><span class="type">void</span> QLegend::<span class="name">setShowToolTips</span>(<span class="type">bool</span> <i>show</i>)</h3>
<p>When <i>show</i> is <code>true</code>, the legend labels will show a tooltip when the mouse hovers over them if the label itself is shown elided. This is <code>false</code> by default.</p>
<p><b>Note:</b> Setter function for property <a href="qlegend.html#showToolTips-prop">showToolTips</a>. </p><p><b>See also </b><a href="qlegend.html#showToolTips">showToolTips</a>().</p>
<!-- @@@setShowToolTips -->
<!-- $$$showToolTips -->
<h3 class="fn" id="showToolTips"><a name="showToolTips"></a><span class="type">bool</span> QLegend::<span class="name">showToolTips</span>() const</h3>
<p>Returns whether the tooltips are shown for the legend labels when they are elided.</p>
<p><b>Note:</b> Getter function for property <a href="qlegend.html#showToolTips-prop">showToolTips</a>. </p><p><b>See also </b><a href="qlegend.html#setShowToolTips">setShowToolTips</a>().</p>
<!-- @@@showToolTips -->
<!-- $$$showToolTipsChanged -->
<h3 class="fn" id="showToolTipsChanged"><a name="showToolTipsChanged"></a><code>[signal] </code><span class="type">void</span> QLegend::<span class="name">showToolTipsChanged</span>(<span class="type">bool</span> <i>showToolTips</i>)</h3>
<p>This signal is emitted when the visibility of tooltips is changed to <i>showToolTips</i>.</p>
<p><b>Note:</b> Notifier signal for property <a href="qlegend.html#showToolTips-prop">showToolTips</a>. </p><!-- @@@showToolTipsChanged -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</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>