classes.qdoc
102 lines
| 5.0 KiB
| text/plain
|
TextLexer
|
r330 | /*! | ||
\page classes.html | ||||
|
r2582 | \title Qt Charts API | ||
|
r330 | \keyword All Classes | ||
|
r2610 | Charts API is built on top of Qt Graphics View Framework. Charts can be displayed as QGraphicsWidget using the QChart class. However | ||
there is also the convenience class QChartView, which is QWidget based. These enable us to quickly use Qt Charts as a normal Qt widget. | ||||
|
r1368 | |||
|
r2610 | Each chart type is represented by the QAbstractSeries derived class. To create charts, the users have to use an instance of the related | ||
series class and add it to a QChart instance. | ||||
|
r483 | \code | ||
QLineSeries* series = new QLineSeries(); | ||||
series->add(0, 6); | ||||
series->add(2, 4); | ||||
... | ||||
|
r1368 | chartView->chart()->addSeries(series); | ||
|
r1630 | chartView->chart()->createDefaultAxes(); | ||
|
r483 | \endcode | ||
|
r1368 | |||
|
r330 | \raw HTML | ||
<table cellpadding="2" cellspacing="1" border="0" width="100%" class="indextable"> | ||||
|
r1372 | <tr> | ||
<th class="titleheader" width="25%"> | ||||
Common and global | ||||
</th> | ||||
<th class="titleheader" width="25%"> | ||||
XY chart | ||||
</th> | ||||
</tr> | ||||
<tr> | ||||
<td valign="top"> | ||||
<ul> | ||||
|
r1368 | <li><a href="qchart.html">QChart</a></li> | ||
|
r2483 | <li><a href="qpolarchart.html">QPolarChart</a></li> | ||
|
r1630 | <li><a href="qchartview.html">QChartView</a></li> | ||
|
r1624 | <li><a href="qabstractaxis.html">QAbstractAxis</a></li> | ||
|
r1812 | <li><a href="qvalueaxis.html">QValueAxis</a></li> | ||
|
r2343 | <li><a href="qlogvalueaxis.html">QLogValueAxis</a></li> | ||
|
r2610 | <li><a href="qbarcategoryaxis.html">QBarCategoryAxis</a></li> | ||
|
r1817 | <li><a href="qcategoryaxis.html">QCategoryAxis</a></li> | ||
|
r1822 | <li><a href="qdatetimeaxis.html">QDateTimeAxis</a></li> | ||
|
r1368 | <li><a href="qlegend.html">QLegend</a></li> | ||
|
r2216 | <li><a href="qlegendmarker.html">QLegendMarker</a></li> | ||
<li><a href="qpielegendmarker.html">QPieLegendMarker</a></li> | ||||
<li><a href="qxylegendmarker.html">QXYLegendMarker</a></li> | ||||
<li><a href="qbarlegendmarker.html">QBarLegendMarker</a></li> | ||||
<li><a href="qarealegendmarker.html">QAreaLegendMarker</a></li> | ||||
|
r2548 | <li><a href="qboxplotlegendmarker.html">QBoxPlotLegendMarker</a></li> | ||
|
r1368 | <li><a href="qabstractseries.html">QAbstractSeries</a></li> | ||
|
r1372 | </ul> | ||
</td> | ||||
<td valign="top"> | ||||
<ul> | ||||
|
r1507 | <li><a href="qxyseries.html">QXYSeries</a></li> | ||
|
r1368 | <li><a href="qlineseries.html">QLineSeries</a></li> | ||
<li><a href="qareaseries.html">QAreaSeries</a></li> | ||||
<li><a href="qscatterseries.html">QScatterSeries</a></li> | ||||
<li><a href="qsplineseries.html">QSplineSeries</a></li> | ||||
<li><a href="qhxymodelmapper.html">QHXYModelMapper</a></li> | ||||
<li><a href="qvxymodelmapper.html">QVXYModelMapper</a></li> | ||||
|
r1372 | </ul> | ||
</td> | ||||
</tr> | ||||
</table> | ||||
<table cellpadding="2" cellspacing="1" border="0" width="100%" class="indextable"> | ||||
<tr> | ||||
<th class="titleheader" width="25%"> | ||||
Pie chart | ||||
</th> | ||||
<th class="titleheader" width="25%"> | ||||
Bar chart | ||||
</th> | ||||
<tr> | ||||
<td valign="top"> | ||||
<ul> | ||||
|
r1368 | <li><a href="qpieseries.html">QPieSeries</a></li> | ||
<li><a href="qpieslice.html">QPieSlice</a></li> | ||||
<li><a href="qhpiemodelmapper.html">QHPieModelMapper</a></li> | ||||
<li><a href="qvpiemodelmapper.html">QVPieModelMapper</a></li> | ||||
|
r1372 | </ul> | ||
</td> | ||||
<td valign="top"> | ||||
<ul> | ||||
|
r1368 | <li><a href="qbarseries.html">QBarSeries</a></li> | ||
<li><a href="qbarset.html">QBarSet</a></li> | ||||
<li><a href="qpercentbarseries.html">QPercentBarSeries</a></li> | ||||
<li><a href="qstackedbarseries.html">QStackedBarSeries</a></li> | ||||
|
r2548 | <li><a href="qboxplotseries.html">QBoxPlotSeries</a></li> | ||
<li><a href="qboxset.html">QBoxSet</a></li> | ||||
|
r1368 | <li><a href="qhbarmodelmapper.html">QHBarModelMapper</a></li> | ||
<li><a href="qvbarmodelmapper.html">QVBarModelMapper</a></li> | ||||
|
r2639 | <li><a href="qvboxplotmodelmapper.html">QVBoxPlotModelMapper</a></li> | ||
|
r1709 | <li><a href="qhorizontalbarseries.html">QHorizontalBarSeries</a></li> | ||
<li><a href="qhorizontalstackedbarseries.html">QHorizontalStackedBarSeries</a></li> | ||||
<li><a href="qhorizontalpercentbarseries.html">QHorizontalPercentBarSeries</a></li> | ||||
|
r1372 | </ul> | ||
</td> | ||||
</tr> | ||||
|
r330 | </table> | ||
\endraw | ||||
|
r2610 | |||
|
r330 | */ | ||