gettingstarted.qdoc
57 lines
| 1.1 KiB
| text/plain
|
TextLexer
|
r1438 | /*! | ||
|
r1483 | \page gettingstarted.html | ||
\title QtCommercial Charts getting started | ||||
|
r1438 | \keyword Introduction | ||
|
r1441 | Compiling: | ||
\code | ||||
qmake CONFIG+=release | ||||
make | ||||
make install | ||||
\endcode | ||||
|
r1480 | Depending on the OS and the compiler you are using "make" might need to be replaced with another command like: nmake, mingw32-make, etc. | ||
|
r1441 | |||
|
r1510 | To uninstall the QtCommercialCharts run: | ||
\code | ||||
make uninstall | ||||
\endcode | ||||
|
r1480 | Compiling as a static library (lib only): | ||
\code | ||||
qmake CONFIG+=staticlib | ||||
make | ||||
make install | ||||
|
r1438 | \endcode | ||
|
r1480 | \bold {New project} | ||
Create a new project in a usual way and then add to your project's *.pro file following line: | ||||
|
r1441 | |||
\code | ||||
|
r1480 | CONFIG += qtcommercialchart | ||
|
r1441 | \endcode | ||
\bold {Widget project} | ||||
To use the QCharts classes add QtCommercialChart namespace macro in your header file. | ||||
\code | ||||
|
r1484 | #include<QWidget> | ||
#include<QChartView> | ||||
|
r1441 | |||
|
r1484 | QTCOMMERCIALCHART_USE_NAMESPACE | ||
|
r1441 | |||
|
r1484 | class ExampleWidget : public QWidget | ||
|
r1441 | \endcode | ||
\bold {QML project} | ||||
Add an import line to your *.qml file: | ||||
\code | ||||
|
r1909 | import QtCommercial.Chart 1.1 | ||
|
r1441 | \endcode | ||
|
r1438 | \raw HTML | ||
\endraw | ||||
*/ | ||||