aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/doc/extras/QtCharts.rst
blob: 8f2d768bf19b4ddbb750b56b10f1b034002c8457 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
The Qt Charts module provides a set of easy-to-use chart components. It uses
the Qt Graphics View Framework to integrate charts with modern user interfaces.
Qt Charts can be used as QWidgets,
:class:`QGraphicsWidget<PySide6.QtWidgets.QGraphicsWidget>` , or QML types.
Users can easily create impressive charts by selecting one of the themes.

Getting Started
^^^^^^^^^^^^^^^

To include the definitions of modules classes, use the following
directive:

    ::

        from PySide6 import QtCharts

The module also provides `QML types <https://doc.qt.io/qt-6/qtcharts-qmlmodule.html>`_ .

.. note:: An instance of QApplication is required for the QML types as the
   module depends on Qt's \l{Graphics View Framework} for rendering.
   QGuiApplication is not sufficient.