Commit cb0f5bd3 authored by Stephen Kitt's avatar Stephen Kitt

New upstream version 5.10.1+dfsg

parents
This diff is collapsed.
This diff is collapsed.
v5.10.1 26th February 2018
- Added support for Qt Charts v5.10.1.
v5.10 23rd January 2018
- Added support for Qt Charts v5.10.0.
v5.9.2 23rd November 2017
- Added support for Qt Charts v5.9.3.
v5.9.1 1st November 2017
- Added support for Qt Charts v5.9.2.
v5.9 3rd July 2017
- Added support for Qt Charts v5.9.0 and v5.9.1.
v5.8 15th February 2017
- Added support for Qt Charts v5.8.0.
v5.7.1 25th December 2016
- Added support for Qt Charts v5.7.1.
v5.7 25th July 2016
- Added support for Qt Charts v5.7.0.
- PyQt4 is no longer supported.
v2.1 25th May 2016
- Added support for Qt Charts v2.1.0.
v2.0 24th December 2014
- Added support for Qt Charts v2.0.0.
v1.4 3rd July 2014
- Added support for Qt Charts v1.4.0.
- configure.py now supports cross-compilation to iOS and Android.
v1.3.1 16th November 2013
- Added support for Qt Charts v1.3.1.
- configure.py now requires the QtCharts version number to be specified using
the --qtchart-version argument.
v1.3 24th June 2013
- Added support for Qt Charts v1.3.0.
- Added the boxplotchart.py and polarchart.py examples.
v1.2.1 16th June 2013
- Added support for PyQt5.
v1.2 21st April 2013
- Added support for Qt Charts v1.2.1.
v1.1 28th September 2012
- Added support for Qt Charts v1.1.0.
- Added the donutbreakdown.py, horizontalbarchart.py,
horizontalpercentbarchart.py and horizontalstackedbarchart.py examples.
v1.0 6th July 2012
- First full release for Qt Charts v1.0.0.
v0.1 30th June 2012
- Initial release for Qt Charts v1.0.0beta.
PyQtChart - Python Bindings for the Qt Charts Toolkit
INTRODUCTION
These are the Python bindings for Qt Charts. Both Python v2 and Python v3 are
supported. You must also have the SIP Python bindings generator and PyQt5
installed.
The homepage is https://www.riverbankcomputing.com/software/pyqtchart/.
The homepage of PyQt is https://www.riverbankcomputing.com/software/pyqt/.
The homepage of SIP is https://www.riverbankcomputing.com/software/sip/.
INSTALLATION
Check for any other README files in this directory that relate to your
particular platform. Feel free to contribute a README for your platform or to
provide updates to any existing documentation.
The first step is to configure PyQtChart by running the following command.
python3 configure.py
This assumes that the correct Python interpreter is on your path. Something
like the following may be appropriate on Windows.
c:\python35\python configure.py
If you have multiple versions of Python installed then make sure you use the
interpreter for which you wish to generate bindings for.
The configure.py script takes many options. Use the "--help" command line
option to display a full list of the available options.
The next step is to build PyQtChart using your platform's make command.
make
The final step is to install PyQtChart by running the following command.
(Depending on your system you may require root or administrator privileges.)
make install
This diff is collapsed.
// QtChartmod.sip generated by MetaSIP
//
// This file is part of the QtChart Python extension module.
//
// Copyright (c) 2018 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of PyQtChart.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%Module(name=PyQt5.QtChart, keyword_arguments="Optional", use_limited_api=True)
%Import QtGui/QtGuimod.sip
%Import QtWidgets/QtWidgetsmod.sip
%Timeline {QtChart_1_0_0 QtChart_1_1_0 QtChart_1_2_0 QtChart_1_2_1 QtChart_1_3_0 QtChart_1_3_1 QtChart_1_4_0 QtChart_2_0_0 QtChart_2_0_1 QtChart_2_1_0 QtChart_5_7_0 QtChart_5_7_1 QtChart_5_8_0 QtChart_5_9_0 QtChart_5_9_1 QtChart_5_9_2 QtChart_5_9_3 QtChart_5_10_0 QtChart_5_10_1}
%Feature PYQTC_v1_0
%Feature PYQTC_v1_1
%Copying
Copyright (c) 2018 Riverbank Computing Limited <info@riverbankcomputing.com>
This file is part of PyQtChart.
This file may be used under the terms of the GNU General Public License
version 3.0 as published by the Free Software Foundation and appearing in
the file LICENSE included in the packaging of this file. Please review the
following information to ensure the GNU General Public License version 3.0
requirements will be met: http://www.gnu.org/copyleft/gpl.html.
If you do not wish to use this file under the terms of the GPL version 3.0
then you may purchase a commercial license. For more information contact
info@riverbankcomputing.com.
This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%End
%DefaultSupertype sip.simplewrapper
%HideNamespace QtCharts
%Include qabstractaxis.sip
%Include qabstractbarseries.sip
%Include qabstractseries.sip
%Include qarealegendmarker.sip
%Include qareaseries.sip
%Include qbarcategoryaxis.sip
%Include qbarcategoriesaxis.sip
%Include qbarlegendmarker.sip
%Include qbarseries.sip
%Include qbarset.sip
%Include qboxplotlegendmarker.sip
%Include qboxplotseries.sip
%Include qboxset.sip
%Include qcandlesticklegendmarker.sip
%Include qcandlestickmodelmapper.sip
%Include qcandlestickseries.sip
%Include qcandlestickset.sip
%Include qcategoryaxis.sip
%Include qchart.sip
%Include qchartglobal.sip
%Include qchartview.sip
%Include qdatetimeaxis.sip
%Include qhbarmodelmapper.sip
%Include qhboxplotmodelmapper.sip
%Include qhcandlestickmodelmapper.sip
%Include qhorizontalbarseries.sip
%Include qhorizontalpercentbarseries.sip
%Include qhorizontalstackedbarseries.sip
%Include qhpiemodelmapper.sip
%Include qhxymodelmapper.sip
%Include qlegend.sip
%Include qlegendmarker.sip
%Include qlineseries.sip
%Include qlogvalueaxis.sip
%Include qpercentbarseries.sip
%Include qpielegendmarker.sip
%Include qpieseries.sip
%Include qpieslice.sip
%Include qpolarchart.sip
%Include qscatterseries.sip
%Include qsplineseries.sip
%Include qstackedbarseries.sip
%Include qvalueaxis.sip
%Include qvaluesaxis.sip
%Include qvbarmodelmapper.sip
%Include qvboxplotmodelmapper.sip
%Include qvcandlestickmodelmapper.sip
%Include qvpiemodelmapper.sip
%Include qvxymodelmapper.sip
%Include qxylegendmarker.sip
%Include qxyseries.sip
// qabstractaxis.sip generated by MetaSIP
//
// This file is part of the QtChart Python extension module.
//
// Copyright (c) 2018 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of PyQtChart.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
namespace QtCharts
{
%TypeHeaderCode
#include <qabstractaxis.h>
%End
class QAbstractAxis : QObject /NoDefaultCtors/
{
%TypeHeaderCode
#include <qabstractaxis.h>
%End
public:
enum AxisType
{
AxisTypeNoAxis,
%If (- QtChart_1_1_0)
AxisTypeValues,
%End
%If (- QtChart_1_1_0)
AxisTypeCategories,
%End
%If (QtChart_1_1_0 -)
AxisTypeValue,
%End
%If (QtChart_1_1_0 -)
AxisTypeBarCategory,
%End
%If (QtChart_1_1_0 -)
AxisTypeCategory,
%End
%If (QtChart_1_1_0 -)
AxisTypeDateTime,
%End
%If (QtChart_1_2_0 -)
AxisTypeLogValue,
%End
};
typedef QFlags<QtCharts::QAbstractAxis::AxisType> AxisTypes;
virtual ~QAbstractAxis();
virtual QtCharts::QAbstractAxis::AxisType type() const = 0;
bool isVisible() const;
void setVisible(bool visible = true);
%If (QtChart_1_1_0 -)
bool isLineVisible() const;
%End
%If (- QtChart_1_1_0)
bool isArrowVisible() const;
%End
%If (QtChart_1_1_0 -)
void setLineVisible(bool visible = true);
%End
%If (- QtChart_1_1_0)
void setArrowVisible(bool visible = true);
%End
%If (QtChart_1_1_0 -)
void setLinePen(const QPen &pen);
%End
%If (- QtChart_1_1_0)
void setAxisPen(const QPen &pen);
%End
%If (QtChart_1_1_0 -)
QPen linePen() const;
%End
%If (- QtChart_1_1_0)
QPen axisPen() const;
%End
%If (QtChart_1_1_0 -)
void setLinePenColor(QColor color);
%End
%If (- QtChart_1_1_0)
void setAxisPenColor(QColor color);
%End
%If (QtChart_1_1_0 -)
QColor linePenColor() const;
%End
%If (- QtChart_1_1_0)
QColor axisPenColor() const;
%End
bool isGridLineVisible() const;
void setGridLineVisible(bool visible = true);
void setGridLinePen(const QPen &pen);
QPen gridLinePen() const;
bool labelsVisible() const;
void setLabelsVisible(bool visible = true);
%If (- QtChart_2_0_0)
void setLabelsPen(const QPen &pen);
%End
%If (- QtChart_2_0_0)
QPen labelsPen() const;
%End
void setLabelsBrush(const QBrush &brush);
QBrush labelsBrush() const;
void setLabelsFont(const QFont &font);
QFont labelsFont() const;
void setLabelsAngle(int angle);
int labelsAngle() const;
void setLabelsColor(QColor color);
QColor labelsColor() const;
bool shadesVisible() const;
void setShadesVisible(bool visible = true);
void setShadesPen(const QPen &pen);
QPen shadesPen() const;
void setShadesBrush(const QBrush &brush);
QBrush shadesBrush() const;
void setShadesColor(QColor color);
QColor shadesColor() const;
void setShadesBorderColor(QColor color);
QColor shadesBorderColor() const;
void setMin(const QVariant &min);
void setMax(const QVariant &max);
void setRange(const QVariant &min, const QVariant &max);
void show();
void hide();
%If (QtChart_2_0_0 -)
Qt::Orientation orientation() const;
%End
%If (QtChart_1_1_0 - QtChart_2_0_0)
Qt::Orientation orientation();
%End
signals:
void visibleChanged(bool visible);
%If (QtChart_1_1_0 -)
void lineVisibleChanged(bool visible);
%End
%If (- QtChart_1_1_0)
void arrowVisibleChanged(bool visible);
%End
void labelsVisibleChanged(bool visible);
void gridVisibleChanged(bool visible);
void colorChanged(QColor color);
void labelsColorChanged(QColor color);
void shadesVisibleChanged(bool visible);
void shadesColorChanged(QColor color);
void shadesBorderColorChanged(QColor color);
public:
%If (QtChart_1_2_0 -)
bool isTitleVisible() const;
%End
%If (QtChart_1_2_0 -)
void setTitleVisible(bool visible = true);
%End
%If (QtChart_1_2_0 - QtChart_2_0_0)
void setTitlePen(const QPen &pen);
%End
%If (QtChart_1_2_0 - QtChart_2_0_0)
QPen titlePen() const;
%End
%If (QtChart_1_2_0 -)
void setTitleBrush(const QBrush &brush);
%End
%If (QtChart_1_2_0 -)
QBrush titleBrush() const;
%End
%If (QtChart_1_2_0 -)
void setTitleFont(const QFont &font);
%End
%If (QtChart_1_2_0 -)
QFont titleFont() const;
%End
%If (QtChart_1_2_0 -)
void setTitleText(const QString &title);
%End
%If (QtChart_1_2_0 -)
QString titleText() const;
%End
%If (QtChart_1_2_0 -)
Qt::Alignment alignment() const;
%End
signals:
%If (QtChart_1_2_0 -)
void linePenChanged(const QPen &pen);
%End
%If (QtChart_1_2_0 - QtChart_2_0_0)
void labelsPenChanged(const QPen &pen);
%End
%If (QtChart_1_2_0 -)
void labelsBrushChanged(const QBrush &brush);
%End
%If (QtChart_1_2_0 -)
void labelsFontChanged(const QFont &pen);
%End
%If (QtChart_1_2_0 -)
void labelsAngleChanged(int angle);
%End
%If (QtChart_1_2_0 -)
void gridLinePenChanged(const QPen &pen);
%End
%If (QtChart_1_2_0 -)
void titleTextChanged(const QString &title);
%End
%If (QtChart_1_2_0 - QtChart_2_0_0)
void titlePenChanged(const QPen &pen);
%End
%If (QtChart_1_2_0 -)
void titleBrushChanged(const QBrush &brush);
%End
%If (QtChart_1_2_0 -)
void titleVisibleChanged(bool visible);
%End
%If (QtChart_1_2_0 -)
void titleFontChanged(const QFont &font);
%End
%If (QtChart_1_2_0 -)
void shadesPenChanged(const QPen &pen);
%End
%If (QtChart_1_2_0 -)
void shadesBrushChanged(const QBrush &brush);
%End
public:
%If (QtChart_2_1_0 -)
bool isMinorGridLineVisible() const;
%End
%If (QtChart_2_1_0 -)
void setMinorGridLineVisible(bool visible = true);
%End
%If (QtChart_2_1_0 -)
void setMinorGridLinePen(const QPen &pen);
%End
%If (QtChart_2_1_0 -)
QPen minorGridLinePen() const;
%End
%If (QtChart_2_1_0 -)
void setGridLineColor(const QColor &color);
%End
%If (QtChart_2_1_0 -)
QColor gridLineColor();
%End
%If (QtChart_2_1_0 -)
void setMinorGridLineColor(const QColor &color);
%End
%If (QtChart_2_1_0 -)
QColor minorGridLineColor();
%End
%If (QtChart_2_1_0 -)
void setReverse(bool reverse = true);
%End
%If (QtChart_2_1_0 -)
bool isReverse() const;
%End
signals:
%If (QtChart_2_1_0 -)
void minorGridVisibleChanged(bool visible);
%End
%If (QtChart_2_1_0 -)
void minorGridLinePenChanged(const QPen &pen);
%End
%If (QtChart_2_1_0 -)
void gridLineColorChanged(const QColor &color);
%End
%If (QtChart_2_1_0 -)
void minorGridLineColorChanged(const QColor &color);
%End
%If (QtChart_2_1_0 -)
void reverseChanged(bool reverse);
%End
private:
%If (QtChart_2_0_0 -)
QAbstractAxis(const QtCharts::QAbstractAxis &);
%End
};
};
// qabstractbarseries.sip generated by MetaSIP
//
// This file is part of the QtChart Python extension module.
//
// Copyright (c) 2018 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of PyQtChart.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
namespace QtCharts
{
%TypeHeaderCode
#include <qabstractbarseries.h>
%End
class QAbstractBarSeries : QtCharts::QAbstractSeries /NoDefaultCtors/
{
%TypeHeaderCode
#include <qabstractbarseries.h>
%End
public:
virtual ~QAbstractBarSeries();
void setBarWidth(qreal width);
qreal barWidth() const;
bool append(QtCharts::QBarSet *set /Transfer/);
bool remove(QtCharts::QBarSet *set /TransferBack/);
bool append(QList<QtCharts::QBarSet *> sets /Transfer/);
bool insert(int index, QtCharts::QBarSet *set /Transfer/);
int count() const /__len__/;
QList<QtCharts::QBarSet *> barSets() const;
void clear();
void setLabelsVisible(bool visible = true);
bool isLabelsVisible() const;
%If (QtChart_1_1_0 -)
bool take(QtCharts::QBarSet *set);
%End
protected:
%If (- QtChart_1_1_0)
explicit QAbstractBarSeries(QObject *parent /TransferThis/ = 0);
%End
signals:
void clicked(int index, QtCharts::QBarSet *barset);
%If (- QtChart_2_0_0)
void hovered(bool status, QtCharts::QBarSet *barset);
%End
%If (QtChart_1_3_1 -)
void hovered(bool status, int index, QtCharts::QBarSet *barset);
%End
void countChanged();
void labelsVisibleChanged();
void barsetsAdded(QList<QtCharts::QBarSet *> sets);
void barsetsRemoved(QList<QtCharts::QBarSet *> sets);
public:
%If (QtChart_1_4_0 -)
enum LabelsPosition
{
LabelsCenter,
LabelsInsideEnd,
LabelsInsideBase,
LabelsOutsideEnd,
};
%End
%If (QtChart_1_4_0 -)
void setLabelsFormat(const QString &format);
%End
%If (QtChart_1_4_0 -)
QString labelsFormat() const;
%End
%If (QtChart_1_4_0 -)
void setLabelsPosition(QtCharts::QAbstractBarSeries::LabelsPosition position);
%End
%If (QtChart_1_4_0 -)
QtCharts::QAbstractBarSeries::LabelsPosition labelsPosition() const;
%End
signals:
%If (QtChart_1_4_0 -)
void labelsFormatChanged(const QString &format);
%End
%If (QtChart_1_4_0 -)
void labelsPositionChanged(QtCharts::QAbstractBarSeries::LabelsPosition position);
%End
%If (QtChart_2_0_0 -)
void pressed(int index, QtCharts::QBarSet *barset);
%End
%If (QtChart_2_0_0 -)
void released(int index, QtCharts::QBarSet *barset);
%End
%If (QtChart_2_0_0 -)
void doubleClicked(int index, QtCharts::QBarSet *barset);
%End
public:
%If (QtChart_2_1_0 -)
void setLabelsAngle(qreal angle);
%End
%If (QtChart_2_1_0 -)
qreal labelsAngle() const;
%End
signals:
%If (QtChart_2_1_0 -)
void labelsAngleChanged(qreal angle);
%End
};
};
This diff is collapsed.
// qarealegendmarker.sip generated by MetaSIP
//
// This file is part of the QtChart Python extension module.
//
// Copyright (c) 2018 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of PyQtChart.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%If (QtChart_1_2_0 -)
namespace QtCharts
{
%TypeHeaderCode
#include <qarealegendmarker.h>
%End
class QAreaLegendMarker : QtCharts::QLegendMarker
{
%TypeHeaderCode
#include <qarealegendmarker.h>
%End
public:
QAreaLegendMarker(QtCharts::QAreaSeries *series, QtCharts::QLegend *legend, QObject *parent /TransferThis/ = 0);
virtual ~QAreaLegendMarker();
virtual QtCharts::QLegendMarker::LegendMarkerType type();
virtual QtCharts::QAreaSeries *series();
private:
QAreaLegendMarker(const QtCharts::QAreaLegendMarker &);
};
};
%End
// qareaseries.sip generated by MetaSIP
//
// This file is part of the QtChart Python extension module.
//
// Copyright (c) 2018 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of PyQtChart.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
namespace QtCharts
{
%TypeHeaderCode
#include <qareaseries.h>
%End
class QAreaSeries : QtCharts::QAbstractSeries
{
%TypeHeaderCode
#include <qareaseries.h>
%End
public:
explicit QAreaSeries(QObject *parent /TransferThis/ = 0);
QAreaSeries(QtCharts::QLineSeries *upperSeries, QtCharts::QLineSeries *lowerSeries = 0);
virtual ~QAreaSeries();
virtual QtCharts::QAbstractSeries::SeriesType type() const;
void setUpperSeries(QtCharts::QLineSeries *series);
QtCharts::QLineSeries *upperSeries() const;
void setLowerSeries(QtCharts::QLineSeries *series);
QtCharts::QLineSeries *lowerSeries() const;
void setPen(const QPen &pen);
QPen pen() const;
void setBrush(const QBrush &brush);
QBrush brush() const;
void setPointsVisible(bool visible = true);
bool pointsVisible() const;
void setColor(const QColor &color);
QColor color() const;
void setBorderColor(const QColor &color);
QColor borderColor() const;
signals:
void borderColorChanged(QColor color);
void colorChanged(QColor color);
void clicked(const QPointF &point);
void selected();
%If (QtChart_1_2_0 -)
void hovered(const QPointF &point, bool state);
%End
public:
%If (QtChart_1_4_0 -)
void setPointLabelsFormat(const QString &format);
%End
%If (QtChart_1_4_0 -)
QString pointLabelsFormat() const;
%End
%If (QtChart_1_4_0 -)
void setPointLabelsVisible(bool visible = true);
%End
%If (QtChart_1_4_0 -)
bool pointLabelsVisible() const;
%End
%If (QtChart_1_4_0 -)
void setPointLabelsFont(const QFont &font);
%End
%If (QtChart_1_4_0 -)
QFont pointLabelsFont() const;
%End
%If (QtChart_1_4_0 -)
void setPointLabelsColor(const QColor &color);
%End
%If (QtChart_1_4_0 -)