@@ -1,57 +1,66 | |||||
1 | /*! |
|
1 | /*! | |
2 | \page gettingstarted.html |
|
2 | \page gettingstarted.html | |
3 | \title QtCommercial Charts getting started |
|
3 | \title QtCommercial Charts getting started | |
4 | \keyword Introduction |
|
4 | \keyword Introduction | |
5 |
|
5 | |||
6 | Compiling: |
|
6 | Compiling: | |
7 | \code |
|
7 | \code | |
8 | qmake CONFIG+=release |
|
8 | qmake CONFIG+=release | |
9 | make |
|
9 | make | |
10 | make install |
|
10 | make install | |
11 | \endcode |
|
11 | \endcode | |
12 |
|
12 | |||
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. |
|
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. | |
14 |
|
14 | |||
15 | To uninstall the QtCommercialCharts run: |
|
15 | To uninstall the QtCommercialCharts run: | |
16 | \code |
|
16 | \code | |
17 | make uninstall |
|
17 | make uninstall | |
18 | \endcode |
|
18 | \endcode | |
19 |
|
19 | |||
20 | Compiling as a static library (lib only): |
|
20 | Compiling as a static library (lib only): | |
21 | \code |
|
21 | \code | |
22 | qmake CONFIG+=staticlib |
|
22 | qmake CONFIG+=staticlib | |
23 | make |
|
23 | make | |
24 | make install |
|
24 | make install | |
25 | \endcode |
|
25 | \endcode | |
26 |
|
26 | |||
|
27 | Building both debug and release at the same time: | |||
|
28 | \code | |||
|
29 | qmake CONFIG+="debug_and_release build_all" | |||
|
30 | make | |||
|
31 | make install | |||
|
32 | \endcode | |||
|
33 | ||||
|
34 | Please take a note that the \i build_all option is necessary for the install to work correctly. Otherwise it will not install both versions. | |||
|
35 | ||||
27 | \bold {New project} |
|
36 | \bold {New project} | |
28 |
|
37 | |||
29 | Create a new project in a usual way and then add to your project's *.pro file following line: |
|
38 | Create a new project in a usual way and then add to your project's *.pro file following line: | |
30 |
|
39 | |||
31 | \code |
|
40 | \code | |
32 | CONFIG += qtcommercialchart |
|
41 | CONFIG += qtcommercialchart | |
33 | \endcode |
|
42 | \endcode | |
34 |
|
43 | |||
35 | \bold {Widget project} |
|
44 | \bold {Widget project} | |
36 |
|
45 | |||
37 | To use the QCharts classes add QtCommercialChart namespace macro in your header file. |
|
46 | To use the QCharts classes add QtCommercialChart namespace macro in your header file. | |
38 | \code |
|
47 | \code | |
39 | #include<QWidget> |
|
48 | #include<QWidget> | |
40 | #include<QChartView> |
|
49 | #include<QChartView> | |
41 |
|
50 | |||
42 | QTCOMMERCIALCHART_USE_NAMESPACE |
|
51 | QTCOMMERCIALCHART_USE_NAMESPACE | |
43 |
|
52 | |||
44 | class ExampleWidget : public QWidget |
|
53 | class ExampleWidget : public QWidget | |
45 | \endcode |
|
54 | \endcode | |
46 |
|
55 | |||
47 | \bold {QML project} |
|
56 | \bold {QML project} | |
48 |
|
57 | |||
49 | Add an import line to your *.qml file: |
|
58 | Add an import line to your *.qml file: | |
50 | \code |
|
59 | \code | |
51 | import QtCommercial.Chart 1.1 |
|
60 | import QtCommercial.Chart 1.1 | |
52 | \endcode |
|
61 | \endcode | |
53 |
|
62 | |||
54 | \raw HTML |
|
63 | \raw HTML | |
55 | \endraw |
|
64 | \endraw | |
56 |
|
65 | |||
57 | */ |
|
66 | */ |
General Comments 0
You need to be logged in to leave comments.
Login now