2014-11-13 06:47:21 +00:00
|
|
|
---------------
|
2016-08-23 06:23:42 +00:00
|
|
|
Qt Charts
|
2014-11-13 06:47:21 +00:00
|
|
|
---------------
|
2012-04-05 07:52:48 +00:00
|
|
|
|
2014-11-13 06:47:21 +00:00
|
|
|
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.
|
|
|
|
|
|
|
|
System Requirements
|
2013-06-17 06:58:58 +00:00
|
|
|
===================
|
2012-04-05 07:52:48 +00:00
|
|
|
|
2014-11-13 06:47:21 +00:00
|
|
|
- Qt 5.4 or newer
|
|
|
|
- For QML applications QtQuick 2 is required
|
2014-11-14 12:41:28 +00:00
|
|
|
- Manipulating Qt Charts graphs with QML Designer requires Qt Creator 3.3 or newer
|
2012-04-05 09:09:24 +00:00
|
|
|
|
2012-04-17 08:12:03 +00:00
|
|
|
Building
|
2012-04-05 07:52:48 +00:00
|
|
|
========
|
2013-10-28 11:29:21 +00:00
|
|
|
|
2014-11-13 06:47:21 +00:00
|
|
|
Configure the project with qmake:
|
|
|
|
qmake
|
2012-04-05 07:52:48 +00:00
|
|
|
|
2014-11-13 06:47:21 +00:00
|
|
|
After running qmake, build the project with make:
|
|
|
|
(Linux) make
|
2012-04-17 08:12:03 +00:00
|
|
|
(Windows with MinGw) mingw32-make
|
2014-11-13 06:47:21 +00:00
|
|
|
(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.
|
2012-04-05 07:52:48 +00:00
|
|
|
|
2012-07-11 11:32:25 +00:00
|
|
|
For debug builds:
|
2014-11-13 06:47:21 +00:00
|
|
|
qmake CONFIG+=debug
|
|
|
|
make
|
|
|
|
or
|
|
|
|
qmake CONFIG+=debug_and_release
|
|
|
|
make debug
|
|
|
|
|
|
|
|
For release builds:
|
|
|
|
qmake CONFIG+=release
|
|
|
|
make
|
|
|
|
or
|
|
|
|
qmake CONFIG+=debug_and_release
|
|
|
|
make release
|
|
|
|
|
|
|
|
For both builds (Windows/OS X only):
|
|
|
|
qmake CONFIG+="debug_and_release build_all"
|
|
|
|
make
|
|
|
|
|
|
|
|
After building, install the module to your Qt directory:
|
2012-04-17 08:12:03 +00:00
|
|
|
make install
|
2012-04-05 07:52:48 +00:00
|
|
|
|
2014-11-13 06:47:21 +00:00
|
|
|
If you want to uninstall the module:
|
2012-04-17 08:12:03 +00:00
|
|
|
make uninstall
|
2012-04-05 07:52:48 +00:00
|
|
|
|
2012-06-12 12:20:48 +00:00
|
|
|
Building as a statically linked library
|
|
|
|
=======================================
|
|
|
|
|
2014-11-13 06:47:21 +00:00
|
|
|
The same as above applies, you will just have to add static to the CONFIG:
|
|
|
|
qmake CONFIG+=static
|
2012-06-12 12:20:48 +00:00
|
|
|
|
2012-04-05 07:52:48 +00:00
|
|
|
Documentation
|
|
|
|
=============
|
2013-10-28 11:29:21 +00:00
|
|
|
|
2014-11-13 06:47:21 +00:00
|
|
|
The documentation can be generated with:
|
2012-09-07 12:29:59 +00:00
|
|
|
make docs
|
2012-04-05 07:52:48 +00:00
|
|
|
|
2014-11-13 06:47:21 +00:00
|
|
|
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:
|
2016-02-03 11:44:37 +00:00
|
|
|
doc/qtcharts/qtcharts-index.html
|
2014-11-17 07:06:01 +00:00
|
|
|
|
|
|
|
Known issues
|
|
|
|
============
|
|
|
|
|
|
|
|
- Zooming too far or too close may eventually freeze the zooming and scrolling.
|