##// END OF EJS Templates
Few docs changes based on the findings list
Marek Rosa -
r1510:1d95213abff9
parent child
Show More
@@ -1,98 +1,85
1 1 /*!
2 2 \page classes.html
3 3 \title QtCommercial Charts API
4 4 \keyword All Classes
5 5
6 6 Charts API is build on top of Qt Graphics View Framework. Charts can be displayed as QGraphicsWidget using QChart class. However
7 7 there is also convenience class QChartView which is QWidget based. These lets quickly use QCharts as normal Qt widget.
8 The API supports following chart types:
9
10 \list
11 \o line
12 \o area
13 \o scatter
14 \o spline
15 \o pie
16 \o grouped bar
17 \o percent bar
18 \o stacked bar
19 \endlist
20
21 8
22 9 Each chart type is represented by QAbstractSeries derived class. To create given chart type users have to use instance of related series class and add it to QChart instance.
23 10 \code
24 11 QLineSeries* series = new QLineSeries();
25 12 series->add(0, 6);
26 13 series->add(2, 4);
27 14 ...
28 15 chartView->chart()->addSeries(series);
29 16 \endcode
30 17
31 18 \raw HTML
32 19 <table cellpadding="2" cellspacing="1" border="0" width="100%" class="indextable">
33 20 <tr>
34 21 <th class="titleheader" width="25%">
35 22 Common and global
36 23 </th>
37 24 <th class="titleheader" width="25%">
38 25 XY chart
39 26 </th>
40 27 </tr>
41 28 <tr>
42 29 <td valign="top">
43 30 <ul>
44 31 <li><a href="qchart.html">QChart</a></li>
45 32 <li><a href="qaxis.html">QAxis</a></li>
46 33 <li><a href="qaxiscategories.html">QAxisCategories</a></li>
47 34 <li><a href="qchartview.html">QChartView</a></li>
48 35 <li><a href="qlegend.html">QLegend</a></li>
49 36 <li><a href="qabstractseries.html">QAbstractSeries</a></li>
50 37 <li><a href="qchartglobal.html">QChartGlobal</a></li>
51 38 </ul>
52 39 </td>
53 40 <td valign="top">
54 41 <ul>
55 42 <li><a href="qxyseries.html">QXYSeries</a></li>
56 43 <li><a href="qlineseries.html">QLineSeries</a></li>
57 44 <li><a href="qareaseries.html">QAreaSeries</a></li>
58 45 <li><a href="qscatterseries.html">QScatterSeries</a></li>
59 46 <li><a href="qsplineseries.html">QSplineSeries</a></li>
60 47 <li><a href="qhxymodelmapper.html">QHXYModelMapper</a></li>
61 48 <li><a href="qvxymodelmapper.html">QVXYModelMapper</a></li>
62 49 </ul>
63 50 </td>
64 51 </tr>
65 52 </table>
66 53 <table cellpadding="2" cellspacing="1" border="0" width="100%" class="indextable">
67 54 <tr>
68 55 <th class="titleheader" width="25%">
69 56 Pie chart
70 57 </th>
71 58 <th class="titleheader" width="25%">
72 59 Bar chart
73 60 </th>
74 61 <tr>
75 62 <td valign="top">
76 63 <ul>
77 64 <li><a href="qpieseries.html">QPieSeries</a></li>
78 65 <li><a href="qpieslice.html">QPieSlice</a></li>
79 66 <li><a href="qhpiemodelmapper.html">QHPieModelMapper</a></li>
80 67 <li><a href="qvpiemodelmapper.html">QVPieModelMapper</a></li>
81 68 </ul>
82 69 </td>
83 70 <td valign="top">
84 71 <ul>
85 72 <li><a href="qbarseries.html">QBarSeries</a></li>
86 73 <li><a href="qbarset.html">QBarSet</a></li>
87 74 <li><a href="qgroupedbarseries.html">QGroupedBarSeries</a></li>
88 75 <li><a href="qpercentbarseries.html">QPercentBarSeries</a></li>
89 76 <li><a href="qstackedbarseries.html">QStackedBarSeries</a></li>
90 77 <li><a href="qhbarmodelmapper.html">QHBarModelMapper</a></li>
91 78 <li><a href="qvbarmodelmapper.html">QVBarModelMapper</a></li>
92 79 </ul>
93 80 </td>
94 81 </tr>
95 82 </table>
96 83 \endraw
97 84
98 85 */
@@ -1,73 +1,64
1 1 /*!
2 2 \page gettingstarted.html
3 3 \title QtCommercial Charts getting started
4 4 \keyword Introduction
5 5
6 You can obtain the QtCommercial Charts package from \l {http://www.digia.com/en/Qt/Log-in-Customer-Portal/} {Customer portal}.
7
8 6 Compiling:
9 7 \code
10 8 qmake CONFIG+=release
11 9 make
12 10 make install
13 11 \endcode
14 12
15 13 Depending on the OS and the compiler you are using "make" might need to be replaced with another command like: nmake, mingw32-make, etc.
16 14
15 To uninstall the QtCommercialCharts run:
16 \code
17 make uninstall
18 \endcode
19
17 20 On Windows platforms both debug and release configurations are built by default at the same time.
18 21 To build both at the same time on other platforms invoke the following command:
19 22
20 23 \code
21 24 make all
22 25 \endcode
23 26
24 27 Compiling as a static library (lib only):
25 28 \code
26 29 qmake CONFIG+=staticlib
27 30 make
28 31 make install
29 32 \endcode
30 33
31 34 \bold {New project}
32 35
33 36 Create a new project in a usual way and then add to your project's *.pro file following line:
34 37
35 38 \code
36 39 CONFIG += qtcommercialchart
37 40 \endcode
38 41
39 Or if you have not installed charts after building:
40
41 \code
42 CHARTSLIB = QtCommercialChart
43 CONFIG(debug, debug|release) {
44 mac: CHARTSLIB = $$join(CHARTSLIB,,,_debug)
45 win32: CHARTSLIB = $$join(CHARTSLIB,,,d)
46 }
47 INCLUDEPATH += <path_to_charts_folder>/include
48 LIBS += -L<path_to_charts_folder>/lib -l$$CHARTSLIB
49 \endcode
50
51 42 \bold {Widget project}
52 43
53 44 To use the QCharts classes add QtCommercialChart namespace macro in your header file.
54 45 \code
55 46 #include<QWidget>
56 47 #include<QChartView>
57 48
58 49 QTCOMMERCIALCHART_USE_NAMESPACE
59 50
60 51 class ExampleWidget : public QWidget
61 52 \endcode
62 53
63 54 \bold {QML project}
64 55
65 56 Add an import line to your *.qml file:
66 57 \code
67 58 import QtCommercial.Chart 1.0
68 59 \endcode
69 60
70 61 \raw HTML
71 62 \endraw
72 63
73 64 */
@@ -1,45 +1,45
1 1 /*!
2 2 \page index.html
3 3 \keyword About
4 4
5 5 \raw HTML
6 6 <div class="qchart">
7 7 <img src="images/qt_commercial_logo.png" alt="qtcommercial"/>
8 8
9 9 <p>
10 10 QCharts is a part of Qt Commercial addons package. It provides a set of easy to use chart
11 11 components which are available for Qt Commercial customers. It uses Qt Graphics View
12 Framework, therefore charts can be easily integrated to modern 2D user interfaces. QCharts can
12 Framework, therefore charts can be easily integrated to modern user interfaces. QCharts can
13 13 be used as QWidgets, QGraphicsWidget or QML elements. Users can easily create impressive
14 14 graphs by selecting one of the charts themes.
15 15 </p>
16 16
17 17 <table>
18 18 <tr>
19 19 <td><a href="examples-linechart.html"><img src="images/examples_linechart.png" width="440" alt="linechart" /></a></td>
20 20 <td><a href="examples-areachart.html"><img src="images/examples_areachart.png" width="440" alt="areachart" /></a></td>
21 21 </tr>
22 22 <tr>
23 23 <td><a href="examples-scatterchart.html"><img src="images/examples_scatterchart.png" width="440" alt="scatterchart" /></a></td>
24 24 <td><a href="examples-barchart.html"><img src="images/examples_barchart.png" width="440" alt="barchart" /></a></td>
25 25 </tr>
26 26 <tr>
27 27 <td><a href="examples-groupedbarchart.html"><img src="images/examples_groupedbarchart.png" width="440" alt="groupedbarcchart" /></a></td>
28 28 <td><a href="examples-stackedbarchart.html"><img src="images/examples_stackedbarchart.png" width="440" alt="stackedbarchart" /></a></td>
29 29 </tr>
30 30 <tr>
31 31 <td><a href="examples-percentbarchart.html"><img src="images/examples_percentbarchart.png" width="440" alt="percentbarcchart" /></a></td>
32 32 <td><a href="examples-splinechart.html"><img src="images/examples_splinechart.png" width="440" alt="linechart" /></a></td>
33 33 </tr>
34 34 <tr>
35 35 <td><a href="examples-customchart.html"><img src="images/examples_customchart.png" width="440" alt="customerchart" /></a></td>
36 36 <td><a href="examples-piechart.html"><img src="images/examples_piechart.png" width="440" alt="piechart" /></a></td>
37 37 </tr>
38 38 <tr>
39 39 <td><a href="demos-chartthemes.html"><img src="images/demo_chartthemes_blue_cerulean.png" width=440 alt="charttheme" /></a></td>
40 40 <td><a href="examples-zoomlinechart.html"><img src="images/examples_zoomlinechart2.png" width="440" alt="zoomlinechart" /></a></td>
41 41 </tr>
42 42 </table>
43 43 </div>
44 44 \endraw
45 45 */
General Comments 0
You need to be logged in to leave comments. Login now