##// END OF EJS Templates
gettingstarted.qdoc whitespace fix
Jani Honkonen -
r1484:fe008ef7d284
parent child
Show More
@@ -1,73 +1,73
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 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 Compiling:
8 Compiling:
9 \code
9 \code
10 qmake CONFIG+=release
10 qmake CONFIG+=release
11 make
11 make
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
16
17 On Windows platforms both debug and release configurations are built by default at the same time.
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:
18 To build both at the same time on other platforms invoke the following command:
19
19
20 \code
20 \code
21 make all
21 make all
22 \endcode
22 \endcode
23
23
24 Compiling as a static library (lib only):
24 Compiling as a static library (lib only):
25 \code
25 \code
26 qmake CONFIG+=staticlib
26 qmake CONFIG+=staticlib
27 make
27 make
28 make install
28 make install
29 \endcode
29 \endcode
30
30
31 \bold {New project}
31 \bold {New project}
32
32
33 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
34
35 \code
35 \code
36 CONFIG += qtcommercialchart
36 CONFIG += qtcommercialchart
37 \endcode
37 \endcode
38
38
39 Or if you have not installed charts after building:
39 Or if you have not installed charts after building:
40
40
41 \code
41 \code
42 CHARTSLIB = QtCommercialChart
42 CHARTSLIB = QtCommercialChart
43 CONFIG(debug, debug|release) {
43 CONFIG(debug, debug|release) {
44 mac: CHARTSLIB = $$join(CHARTSLIB,,,_debug)
44 mac: CHARTSLIB = $$join(CHARTSLIB,,,_debug)
45 win32: CHARTSLIB = $$join(CHARTSLIB,,,d)
45 win32: CHARTSLIB = $$join(CHARTSLIB,,,d)
46 }
46 }
47 INCLUDEPATH += <path_to_charts_folder>/include
47 INCLUDEPATH += <path_to_charts_folder>/include
48 LIBS += -L<path_to_charts_folder>/lib -l$$CHARTSLIB
48 LIBS += -L<path_to_charts_folder>/lib -l$$CHARTSLIB
49 \endcode
49 \endcode
50
50
51 \bold {Widget project}
51 \bold {Widget project}
52
52
53 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.
54 \code
54 \code
55 #include<QWidget>
55 #include<QWidget>
56 #include<QChartView>
56 #include<QChartView>
57
57
58 QTCOMMERCIALCHART_USE_NAMESPACE
58 QTCOMMERCIALCHART_USE_NAMESPACE
59
59
60 class ExampleWidget : public QWidget
60 class ExampleWidget : public QWidget
61 \endcode
61 \endcode
62
62
63 \bold {QML project}
63 \bold {QML project}
64
64
65 Add an import line to your *.qml file:
65 Add an import line to your *.qml file:
66 \code
66 \code
67 import QtCommercial.Chart 1.0
67 import QtCommercial.Chart 1.0
68 \endcode
68 \endcode
69
69
70 \raw HTML
70 \raw HTML
71 \endraw
71 \endraw
72
72
73 */
73 */
General Comments 0
You need to be logged in to leave comments. Login now