Qt Charts module provides a set of easy to use chart components. It uses
the Qt Graphics View Framework, therefore charts can be easily integrated
to modern user interfaces.
- Qt 5.4 or newer
- For QML applications QtQuick 2 is required
- Manipulating Qt Charts graphs with QML Designer requires Qt Creator 3.3 or newer
Configure the project with qmake:
After running qmake, build the project with make:
(Windows with MinGw) mingw32-make
(Windows with Visual Studio) nmake
(OS X) make
The above generates the default makefiles for your configuration, which is typically
the release build if you are using precompiled binary Qt distribution. To build both
debug and release, or one specifically, use one of the following qmake lines instead.
For debug builds:
For release builds:
For both builds (Windows/OS X only):
qmake CONFIG+="debug_and_release build_all"
After building, install the module to your Qt directory:
If you want to uninstall the module:
Building as a statically linked library
The same as above applies, you will just have to add static to the CONFIG:
The documentation can be generated with:
The documentation is generated into the doc folder under the build folder.
Both Qt Assistant (qtcharts.qch) and in HTML format (qtcharts subfolder)
documentation is generated.
Please refer to the generated documentation for more information:
- Zooming too far or too close may eventually freeze the zooming and scrolling.