@@ -12,27 +12,42 | |||||
12 | make install |
|
12 | make install | |
13 | \endcode |
|
13 | \endcode | |
14 |
|
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 |
|
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 | On Windows platforms both debug and release configurations are built by default at the same time. | |||
|
18 | To build both at the same time on other platforms invoke the following command: | |||
|
19 | ||||
|
20 | \code | |||
|
21 | make all | |||
|
22 | \endcode | |||
|
23 | ||||
|
24 | Compiling as a static library (lib only): | |||
|
25 | \code | |||
|
26 | qmake CONFIG+=staticlib | |||
|
27 | make | |||
|
28 | make install | |||
|
29 | \endcode | |||
16 |
|
30 | |||
17 | \bold {New project} |
|
31 | \bold {New project} | |
18 |
|
32 | |||
19 | Create a new project in a usual way and then add to your project's *.pro file following line |
|
33 | Create a new project in a usual way and then add to your project's *.pro file following line: | |
|
34 | ||||
20 | \code |
|
35 | \code | |
21 | CONFIG += qtcommercialchart |
|
36 | CONFIG += qtcommercialchart | |
22 | \endcode |
|
37 | \endcode | |
23 |
|
38 | |||
24 |
|
|
39 | Or if you have not installed charts after building: | |
25 |
|
40 | |||
26 | On *unix: |
|
|||
27 | \code |
|
41 | \code | |
|
42 | CHARTSLIB = QtCommercialChart | |||
|
43 | CONFIG(debug, debug|release) { | |||
|
44 | mac: CHARTSLIB = $$join(CHARTSLIB,,,_debug) | |||
|
45 | win32: CHARTSLIB = $$join(CHARTSLIB,,,d) | |||
|
46 | } | |||
28 |
|
|
47 | INCLUDEPATH += <path_to_charts_folder>/include | |
29 |
|
|
48 | LIBS += -L<path_to_charts_folder>/lib -l$$CHARTSLIB | |
30 | \endcode |
|
49 | \endcode | |
31 |
|
50 | |||
32 | On windows: |
|
|||
33 |
|
||||
34 | On mac: |
|
|||
35 |
|
||||
36 | \bold {Widget project} |
|
51 | \bold {Widget project} | |
37 |
|
52 | |||
38 | To use the QCharts classes add QtCommercialChart namespace macro in your header file. |
|
53 | To use the QCharts classes add QtCommercialChart namespace macro in your header file. |
General Comments 0
You need to be logged in to leave comments.
Login now