@@ -5,11 +5,53 | |||||
5 |
|
5 | |||
6 | You can obtain the QtCommercial Charts package from \l {http://www.digia.com/en/Qt/Log-in-Customer-Portal/} {Customer portal}. |
|
6 | You can obtain the QtCommercial Charts package from \l {http://www.digia.com/en/Qt/Log-in-Customer-Portal/} {Customer portal}. | |
7 |
|
7 | |||
8 | Add to you *.pro file |
|
8 | Compiling: | |
|
9 | \code | |||
|
10 | qmake CONFIG+=release | |||
|
11 | make | |||
|
12 | make install | |||
|
13 | \endcode | |||
|
14 | ||||
|
15 | 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 | ||||
|
17 | \bold {New project} | |||
|
18 | ||||
|
19 | Create a new project in a usual way and then add to your project's *.pro file following line | |||
9 | \code |
|
20 | \code | |
10 | CONFIG += qtcommercialchart |
|
21 | CONFIG += qtcommercialchart | |
11 | \endcode |
|
22 | \endcode | |
12 |
|
23 | |||
|
24 | or if you have not installed QCharts afer building: | |||
|
25 | ||||
|
26 | On *unix: | |||
|
27 | \code | |||
|
28 | INCLUDEPATH += <path_to_charts_folder>/include | |||
|
29 | LIBS += -L<path_to_charts_folder>/lib -lQtCommercialChart | |||
|
30 | \endcode | |||
|
31 | ||||
|
32 | On windows: | |||
|
33 | ||||
|
34 | On mac: | |||
|
35 | ||||
|
36 | \bold {Widget project} | |||
|
37 | ||||
|
38 | To use the QCharts classes add QtCommercialChart namespace macro in your header file. | |||
|
39 | \code | |||
|
40 | #include<QWidget> | |||
|
41 | #include<QChartView> | |||
|
42 | ||||
|
43 | QTCOMMERCIALCHART_USE_NAMESPACE | |||
|
44 | ||||
|
45 | class ExampleWidget : public QWidget | |||
|
46 | \endcode | |||
|
47 | ||||
|
48 | \bold {QML project} | |||
|
49 | ||||
|
50 | Add an import line to your *.qml file: | |||
|
51 | \code | |||
|
52 | import QtCommercial.Chart 1.0 | |||
|
53 | \endcode | |||
|
54 | ||||
13 | \raw HTML |
|
55 | \raw HTML | |
14 | \endraw |
|
56 | \endraw | |
15 |
|
57 |
General Comments 0
You need to be logged in to leave comments.
Login now