├── src ├── charts │ ├── qt_cmdline.cmake │ ├── doc │ │ ├── images │ │ │ ├── bg.png │ │ │ ├── horBar.png │ │ │ ├── qcharts.png │ │ │ ├── qt-logo.png │ │ │ ├── arrow_down.png │ │ │ ├── breadcrumb.png │ │ │ ├── bullet_dn.png │ │ │ ├── bullet_gt.png │ │ │ ├── bullet_sq.png │ │ │ ├── bullet_up.png │ │ │ ├── digia_logo.png │ │ │ ├── dynamicwavform.gif │ │ │ ├── examples_audio.png │ │ │ ├── api_category_axis.png │ │ │ ├── api_datatime_axis.png │ │ │ ├── examples_barchart.png │ │ │ ├── examples_callout.png │ │ │ ├── examples_piechart.png │ │ │ ├── examples_qmlaxes1.png │ │ │ ├── examples_qmlaxes2.png │ │ │ ├── examples_qmlaxes3.png │ │ │ ├── examples_areachart.png │ │ │ ├── examples_customchart.png │ │ │ ├── examples_donutchart.png │ │ │ ├── examples_lineandbar.png │ │ │ ├── examples_linechart.png │ │ │ ├── examples_modeldata.png │ │ │ ├── examples_multiaxis.png │ │ │ ├── examples_polarchart.png │ │ │ ├── examples_qmlboxplot.png │ │ │ ├── examples_qmlchart1.png │ │ │ ├── examples_qmlchart10.png │ │ │ ├── examples_qmlchart11.png │ │ │ ├── examples_qmlchart12.png │ │ │ ├── examples_qmlchart2.png │ │ │ ├── examples_qmlchart3.png │ │ │ ├── examples_qmlchart4.png │ │ │ ├── examples_qmlchart5.png │ │ │ ├── examples_qmlchart6.png │ │ │ ├── examples_qmlchart7.png │ │ │ ├── examples_qmlchart8.png │ │ │ ├── examples_qmlchart9.png │ │ │ ├── examples_qmlpiechart.png │ │ │ ├── examples_qmlweather.png │ │ │ ├── examples_selectedbar.png │ │ │ ├── examples_splinechart.png │ │ │ ├── examples_boxplotchart.png │ │ │ ├── examples_datetimeaxis.png │ │ │ ├── examples_legend_detach.png │ │ │ ├── examples_legendmarkers.png │ │ │ ├── examples_logvalueaxis.png │ │ │ ├── examples_nesteddonuts.png │ │ │ ├── examples_openglseries.png │ │ │ ├── examples_qmlf1legends.png │ │ │ ├── examples_scatterchart.png │ │ │ ├── piechart_customization.png │ │ │ ├── examples_barmodelmapper.png │ │ │ ├── examples_candlestickchart.png │ │ │ ├── examples_donutbreakdown.png │ │ │ ├── examples_dynamicspline1.png │ │ │ ├── examples_dynamicspline2.png │ │ │ ├── examples_legend_detach2.png │ │ │ ├── examples_percentbarchart.png │ │ │ ├── examples_piechartdrill1.png │ │ │ ├── examples_piechartdrill2.png │ │ │ ├── examples_qmlcandlestick.png │ │ │ ├── examples_qmlcustomlegend1.png │ │ │ ├── examples_qmlcustomlegend2.png │ │ │ ├── examples_qmlcustomlegend3.png │ │ │ ├── examples_qmlcustommodel.png │ │ │ ├── examples_qmloscilloscope.png │ │ │ ├── examples_qmlpolarchart1.png │ │ │ ├── examples_qmlpolarchart2.png │ │ │ ├── examples_qmlpolarchart3.png │ │ │ ├── examples_stackedbarchart.png │ │ │ ├── examples_zoomlinechart1.png │ │ │ ├── examples_zoomlinechart2.png │ │ │ ├── examples_chartthemes_light.png │ │ │ ├── examples_horizontalbarchart.png │ │ │ ├── examples_pointconfiguration.png │ │ │ ├── examples_qmlcustomizations.png │ │ │ ├── examples_temperaturerecords.png │ │ │ ├── examples_scatterinteractions.png │ │ │ ├── xyseries_point_configuration.png │ │ │ ├── examples_chartthemes_brown_sand.png │ │ │ ├── examples_percentbarchart_legend.png │ │ │ ├── examples_chartthemes_blue_cerulean.png │ │ │ ├── examples_horizontalpercentbarchart.png │ │ │ ├── examples_horizontalstackedbarchart.png │ │ │ ├── examples_pointsselectionandmarkers1.png │ │ │ ├── examples_pointsselectionandmarkers2.png │ │ │ ├── examples_stackedbarchartdrilldown1.png │ │ │ └── examples_stackedbarchartdrilldown2.png │ │ ├── src │ │ │ ├── qtcharts-module-use.qdocinc │ │ │ ├── qtcharts-toc.qdoc │ │ │ └── deprecation-phase.qdocinc │ │ └── snippets │ │ │ └── doc_src_qtcharts.cpp │ ├── animations │ │ ├── chartanimation.cpp │ │ └── scatteranimation_p.h │ ├── qchartglobal_p.h │ ├── barchart │ │ ├── vertical │ │ │ ├── bar │ │ │ │ ├── qbarseries.h │ │ │ │ └── qbarseries_p.h │ │ │ ├── percent │ │ │ │ ├── qpercentbarseries.h │ │ │ │ └── qpercentbarseries_p.h │ │ │ └── stacked │ │ │ │ └── qstackedbarseries.h │ │ └── horizontal │ │ │ ├── bar │ │ │ └── qhorizontalbarseries.h │ │ │ ├── percent │ │ │ └── qhorizontalpercentbarseries.h │ │ │ └── stacked │ │ │ └── qhorizontalstackedbarseries.h │ ├── chartitem.cpp │ ├── splinechart │ │ └── qsplineseries.h │ ├── linechart │ │ ├── qlineseries.h │ │ └── qlineseries_p.h │ ├── qchartglobal.h │ └── legend │ │ ├── qcandlesticklegendmarker.h │ │ └── qxylegendmarker.h ├── chartsqml2 │ ├── designer │ │ ├── images │ │ │ ├── barseries-icon.png │ │ │ ├── barseries-icon16.png │ │ │ ├── areaseries-chart-icon.png │ │ │ ├── areaseries-polar-icon.png │ │ │ ├── lineseries-chart-icon.png │ │ │ ├── lineseries-polar-icon.png │ │ │ ├── percentbarseries-icon.png │ │ │ ├── pieseries-chart-icon.png │ │ │ ├── stackedbarseries-icon.png │ │ │ ├── areaseries-chart-icon16.png │ │ │ ├── areaseries-polar-icon16.png │ │ │ ├── lineseries-chart-icon16.png │ │ │ ├── lineseries-polar-icon16.png │ │ │ ├── percentbarseries-icon16.png │ │ │ ├── pieseries-chart-icon16.png │ │ │ ├── splineseries-chart-icon.png │ │ │ ├── splineseries-polar-icon.png │ │ │ ├── stackedbarseries-icon16.png │ │ │ ├── boxplotseries-chart-icon.png │ │ │ ├── boxplotseries-chart-icon16.png │ │ │ ├── horizontalbarseries-icon.png │ │ │ ├── horizontalbarseries-icon16.png │ │ │ ├── scatterseries-chart-icon.png │ │ │ ├── scatterseries-chart-icon16.png │ │ │ ├── scatterseries-polar-icon.png │ │ │ ├── scatterseries-polar-icon16.png │ │ │ ├── splineseries-chart-icon16.png │ │ │ ├── splineseries-polar-icon16.png │ │ │ ├── horizontalpercentbarseries-icon.png │ │ │ ├── horizontalstackedbarseries-icon.png │ │ │ ├── horizontalpercentbarseries-icon16.png │ │ │ └── horizontalstackedbarseries-icon16.png │ │ ├── CMakeLists.txt │ │ └── default │ │ │ ├── ScatterSeries.qml │ │ │ ├── LineSeries.qml │ │ │ ├── SplineSeries.qml │ │ │ ├── PieSeries.qml │ │ │ ├── BarSeries.qml │ │ │ ├── PercentBarSeries.qml │ │ │ ├── StackedBarSeries.qml │ │ │ ├── HorizontalBarSeries.qml │ │ │ ├── BoxPlotSeries.qml │ │ │ ├── AreaSeries.qml │ │ │ ├── HorizontalPercentBarSeries.qml │ │ │ ├── HorizontalStackedBarSeries.qml │ │ │ ├── PolarScatterSeries.qml │ │ │ ├── PolarLineSeries.qml │ │ │ ├── PolarSplineSeries.qml │ │ │ └── CMakeLists.txt │ ├── declarativechartglobal_p.h │ └── declarativeaxes.cpp └── CMakeLists.txt ├── .tag ├── qt_cmdline.cmake ├── examples ├── examples.pro ├── charts │ ├── chartsgallery │ │ ├── data │ │ │ ├── blue_triangle.png │ │ │ └── green_triangle.png │ │ ├── doc │ │ │ ├── images │ │ │ │ └── ChartWidgetGallery.png │ │ │ └── src │ │ │ │ ├── gallery.qdocinc │ │ │ │ └── examples-callout.qdoc │ │ ├── barwidget.h │ │ ├── piewidget.h │ │ ├── areawidget.h │ │ ├── linewidget.h │ │ ├── donutwidget.h │ │ ├── splinewidget.h │ │ ├── logaxiswidget.h │ │ ├── scatterwidget.h │ │ ├── modeldatawidget.h │ │ ├── multiaxiswidget.h │ │ ├── barpercentwidget.h │ │ ├── barstackedwidget.h │ │ ├── lineandbarwidget.h │ │ ├── customchartwidget.h │ │ ├── main.cpp │ │ ├── interactionswidget.h │ │ ├── piedrilldownwidget.h │ │ ├── horizontalbarwidget.h │ │ ├── donutbreakdownwidget.h │ │ ├── stackeddrilldownwidget.h │ │ ├── polarchartwidget.h │ │ ├── boxplotwidget.h │ │ ├── temperaturerecordswidget.h │ │ ├── horizontalpercentbarwidget.h │ │ ├── horizontalstackedbarwidget.h │ │ ├── barmodelmapperwidget.h │ │ ├── candlestickwidget.h │ │ ├── chartsgallery.qrc │ │ ├── datetimeaxiswidget.h │ │ ├── polarchartview.h │ │ ├── calloutwidget.h │ │ ├── pcccustomslice.h │ │ ├── calloutwidget.cpp │ │ ├── candlestickdatareader.h │ │ ├── donutbreakdownchart.h │ │ ├── boxplotdatareader.h │ │ ├── nesteddonutswidget.h │ │ ├── scatterinteractionswidget.h │ │ ├── selectedbarwidget.h │ │ ├── interactionsview.h │ │ ├── piedrilldownchart.h │ │ ├── piedrilldownslice.h │ │ ├── donutbreakdownmainslice.h │ │ ├── pcccustomslice.cpp │ │ ├── piedrilldownchart.cpp │ │ ├── dynamicsplinewidget.h │ │ ├── stackeddrilldownseries.h │ │ ├── contentwidget.h │ │ ├── stackeddrilldownchart.h │ │ ├── pccbrushtool.h │ │ ├── linewidget.cpp │ │ ├── interactionschart.h │ │ ├── legendmarkerswidget.h │ │ ├── interactionsview.cpp │ │ ├── donutbreakdownmainslice.cpp │ │ └── stackeddrilldownseries.cpp │ ├── qmlweather │ │ ├── resources.qrc │ │ └── qmlweather.pro │ ├── qmlchartsgallery │ │ ├── doc │ │ │ ├── images │ │ │ │ └── QMLChartsGallery.png │ │ │ └── src │ │ │ │ └── qmlchartsgallery.qdocinc │ │ ├── qmlchartsgallery.pro │ │ └── qml │ │ │ ├── customlegend │ │ │ └── AnimatedAreaSeries.qml │ │ │ ├── LineSeries.qml │ │ │ ├── SplineSeries.qml │ │ │ ├── BarSeriesPercent.qml │ │ │ ├── BarSeriesStacked.qml │ │ │ ├── BarSeries.qml │ │ │ ├── BarSeriesHorizontal.qml │ │ │ ├── BoxPlotSeries.qml │ │ │ ├── BarSeriesPercentHorizontal.qml │ │ │ ├── BarSeriesStackedHorizontal.qml │ │ │ └── ScatterSeries.qml │ ├── openglseries │ │ ├── openglseries.pro │ │ └── CMakeLists.txt │ ├── zoomlinechart │ │ ├── zoomlinechart.pro │ │ ├── chart.h │ │ ├── chartview.h │ │ └── CMakeLists.txt │ ├── qmloscilloscope │ │ ├── resources.qrc │ │ ├── qmloscilloscope.pro │ │ └── datasource.h │ └── audio │ │ ├── audio.pro │ │ ├── main.cpp │ │ ├── xyseriesiodevice.h │ │ └── widget.h └── CMakeLists.txt ├── plugins ├── plugins.pro ├── designer │ ├── qcharts.png │ ├── qchartsplugin.qrc │ ├── designer.pro │ └── qchartsplugin.h └── CMakeLists.txt ├── tests ├── auto │ ├── qareaseries │ │ ├── BLACKLIST │ │ └── CMakeLists.txt │ ├── qbarseries │ │ ├── BLACKLIST │ │ └── CMakeLists.txt │ ├── qpieseries │ │ ├── BLACKLIST │ │ └── CMakeLists.txt │ ├── qpieslice │ │ ├── BLACKLIST │ │ └── CMakeLists.txt │ ├── qml-qtquicktest │ │ └── main.cpp │ ├── README │ ├── qchart │ │ └── CMakeLists.txt │ ├── qbarset │ │ └── CMakeLists.txt │ ├── qlegend │ │ └── CMakeLists.txt │ ├── qchartview │ │ └── CMakeLists.txt │ ├── qml │ │ └── CMakeLists.txt │ ├── qxymodelmapper │ │ └── CMakeLists.txt │ ├── qcandlestickset │ │ └── CMakeLists.txt │ ├── qpiemodelmapper │ │ └── CMakeLists.txt │ ├── domain │ │ └── CMakeLists.txt │ ├── qpercentbarseries │ │ └── CMakeLists.txt │ ├── qstackedbarseries │ │ └── CMakeLists.txt │ ├── qcandlestickseries │ │ └── CMakeLists.txt │ ├── qhorizontalbarseries │ │ └── CMakeLists.txt │ ├── chartdataset │ │ └── CMakeLists.txt │ ├── qcandlestickmodelmapper │ │ └── CMakeLists.txt │ ├── qvalueaxis │ │ └── CMakeLists.txt │ ├── qsplineseries │ │ └── CMakeLists.txt │ ├── qscatterseries │ │ └── CMakeLists.txt │ ├── qhorizontalpercentbarseries │ │ └── CMakeLists.txt │ ├── qhorizontalstackedbarseries │ │ └── CMakeLists.txt │ ├── qbarmodelmapper │ │ └── CMakeLists.txt │ ├── qcategoryaxis │ │ └── CMakeLists.txt │ ├── qdatetimeaxis │ │ └── CMakeLists.txt │ ├── qlineseries │ │ └── CMakeLists.txt │ ├── qlogvalueaxis │ │ └── CMakeLists.txt │ └── qbarcategoryaxis │ │ └── CMakeLists.txt ├── manual │ ├── wavechart │ │ ├── wavechart.pro │ │ ├── CMakeLists.txt │ │ ├── wavechart.h │ │ └── main.cpp │ ├── qmlchartaxis │ │ ├── qmlchartaxis.pro │ │ ├── resources.qrc │ │ └── qml │ │ │ └── qmlchartaxis │ │ │ ├── DefaultAxes.qml │ │ │ └── DefaultAxesRevert.qml │ ├── qmlchartproperties │ │ ├── qmlchartproperties.pro │ │ └── qml │ │ │ └── qmlchartproperties │ │ │ └── ChartEditorTitle.qml │ ├── presenterchart │ │ ├── presenterchart.pro │ │ ├── CMakeLists.txt │ │ ├── main.cpp │ │ └── chartview.h │ ├── barcharttester │ │ ├── barcharttester.pro │ │ ├── main.cpp │ │ └── CMakeLists.txt │ ├── chartviewer │ │ ├── chartviewer.pro │ │ └── view.h │ ├── candlesticktester │ │ ├── candlesticktester.pro │ │ ├── main.cpp │ │ └── CMakeLists.txt │ ├── chartwidgettest │ │ ├── chartwidgettest.pro │ │ ├── main.cpp │ │ └── CMakeLists.txt │ ├── boxplottester │ │ ├── boxplottester.pro │ │ ├── main.cpp │ │ └── CMakeLists.txt │ ├── chartdesigner │ │ ├── brushwidget.cpp │ │ ├── main.cpp │ │ ├── chartdesigner.pro │ │ ├── objectinspectorwidget.h │ │ ├── brushwidget.h │ │ ├── penwidget.h │ │ └── objectinspectorwidget.cpp │ ├── polarcharttest │ │ ├── polarcharttest.pro │ │ ├── main.cpp │ │ ├── chartview.h │ │ └── CMakeLists.txt │ ├── openglseriestest │ │ ├── main.cpp │ │ ├── openglseriestest.pro │ │ ├── chartview.h │ │ ├── CMakeLists.txt │ │ └── chartview.cpp │ ├── manual.pro │ └── CMakeLists.txt ├── tests.pri └── CMakeLists.txt ├── .gitreview ├── dist ├── changes-2.1.3 ├── changes-2.1.1 ├── REUSE.toml ├── changes-2.0.1 ├── changes-5.7.0 ├── changes-5.8.0 ├── changes-5.13.0 ├── changes-5.14.1 ├── changes-5.11.3 ├── changes-5.12.2 ├── changes-5.14.2 ├── changes-5.10.0 ├── changes-5.14.0 ├── changes-5.9.5 ├── changes-5.9.4 ├── changes-5.9.1 ├── changes-5.9.3 ├── changes-5.9.6 └── changes-5.11.2 ├── .cmake.conf ├── dependencies.yaml ├── LICENSES └── LicenseRef-Qt-Commercial.txt ├── configure.cmake └── coin └── module_config.yaml /src/charts/qt_cmdline.cmake: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.tag: -------------------------------------------------------------------------------- 1 | baa9ec2b734a09cb48864a00f4b89ccd39496564 2 | -------------------------------------------------------------------------------- /qt_cmdline.cmake: -------------------------------------------------------------------------------- 1 | qt_commandline_subconfig(src/charts) 2 | -------------------------------------------------------------------------------- /examples/examples.pro: -------------------------------------------------------------------------------- 1 | TEMPLATE = subdirs 2 | SUBDIRS += charts 3 | -------------------------------------------------------------------------------- /plugins/plugins.pro: -------------------------------------------------------------------------------- 1 | 2 | TEMPLATE = subdirs 3 | 4 | SUBDIRS += designer 5 | 6 | -------------------------------------------------------------------------------- /tests/auto/qareaseries/BLACKLIST: -------------------------------------------------------------------------------- 1 | # QTBUG-102722 2 | android 3 | [areaSeries] 4 | android 5 | -------------------------------------------------------------------------------- /tests/auto/qbarseries/BLACKLIST: -------------------------------------------------------------------------------- 1 | [mousehovered] 2 | macos 3 | xcb ubuntu-24.04 # QTBUG-134519 4 | -------------------------------------------------------------------------------- /plugins/designer/qcharts.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/plugins/designer/qcharts.png -------------------------------------------------------------------------------- /src/charts/doc/images/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/bg.png -------------------------------------------------------------------------------- /.gitreview: -------------------------------------------------------------------------------- 1 | [gerrit] 2 | host=codereview.qt-project.org 3 | project=qt/qtcharts 4 | defaultbranch=dev 5 | -------------------------------------------------------------------------------- /src/charts/doc/images/horBar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/horBar.png -------------------------------------------------------------------------------- /src/charts/doc/images/qcharts.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/qcharts.png -------------------------------------------------------------------------------- /src/charts/doc/images/qt-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/qt-logo.png -------------------------------------------------------------------------------- /dist/changes-2.1.3: -------------------------------------------------------------------------------- 1 | Qt Charts 2.1.3 2 | 3 | Fixed issues 4 | ------------ 5 | - Fix crash on PieChartItem deletion 6 | -------------------------------------------------------------------------------- /src/charts/doc/images/arrow_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/arrow_down.png -------------------------------------------------------------------------------- /src/charts/doc/images/breadcrumb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/breadcrumb.png -------------------------------------------------------------------------------- /src/charts/doc/images/bullet_dn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/bullet_dn.png -------------------------------------------------------------------------------- /src/charts/doc/images/bullet_gt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/bullet_gt.png -------------------------------------------------------------------------------- /src/charts/doc/images/bullet_sq.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/bullet_sq.png -------------------------------------------------------------------------------- /src/charts/doc/images/bullet_up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/bullet_up.png -------------------------------------------------------------------------------- /src/charts/doc/images/digia_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/digia_logo.png -------------------------------------------------------------------------------- /src/charts/doc/images/dynamicwavform.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/dynamicwavform.gif -------------------------------------------------------------------------------- /src/charts/doc/images/examples_audio.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_audio.png -------------------------------------------------------------------------------- /src/charts/doc/images/api_category_axis.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/api_category_axis.png -------------------------------------------------------------------------------- /src/charts/doc/images/api_datatime_axis.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/api_datatime_axis.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_barchart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_barchart.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_callout.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_callout.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_piechart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_piechart.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_qmlaxes1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_qmlaxes1.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_qmlaxes2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_qmlaxes2.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_qmlaxes3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_qmlaxes3.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_areachart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_areachart.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_customchart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_customchart.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_donutchart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_donutchart.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_lineandbar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_lineandbar.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_linechart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_linechart.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_modeldata.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_modeldata.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_multiaxis.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_multiaxis.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_polarchart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_polarchart.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_qmlboxplot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_qmlboxplot.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_qmlchart1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_qmlchart1.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_qmlchart10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_qmlchart10.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_qmlchart11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_qmlchart11.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_qmlchart12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_qmlchart12.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_qmlchart2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_qmlchart2.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_qmlchart3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_qmlchart3.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_qmlchart4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_qmlchart4.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_qmlchart5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_qmlchart5.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_qmlchart6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_qmlchart6.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_qmlchart7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_qmlchart7.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_qmlchart8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_qmlchart8.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_qmlchart9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_qmlchart9.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_qmlpiechart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_qmlpiechart.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_qmlweather.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_qmlweather.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_selectedbar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_selectedbar.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_splinechart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_splinechart.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_boxplotchart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_boxplotchart.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_datetimeaxis.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_datetimeaxis.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_legend_detach.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_legend_detach.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_legendmarkers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_legendmarkers.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_logvalueaxis.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_logvalueaxis.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_nesteddonuts.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_nesteddonuts.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_openglseries.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_openglseries.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_qmlf1legends.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_qmlf1legends.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_scatterchart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_scatterchart.png -------------------------------------------------------------------------------- /src/charts/doc/images/piechart_customization.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/piechart_customization.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_barmodelmapper.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_barmodelmapper.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_candlestickchart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_candlestickchart.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_donutbreakdown.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_donutbreakdown.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_dynamicspline1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_dynamicspline1.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_dynamicspline2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_dynamicspline2.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_legend_detach2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_legend_detach2.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_percentbarchart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_percentbarchart.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_piechartdrill1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_piechartdrill1.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_piechartdrill2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_piechartdrill2.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_qmlcandlestick.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_qmlcandlestick.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_qmlcustomlegend1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_qmlcustomlegend1.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_qmlcustomlegend2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_qmlcustomlegend2.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_qmlcustomlegend3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_qmlcustomlegend3.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_qmlcustommodel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_qmlcustommodel.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_qmloscilloscope.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_qmloscilloscope.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_qmlpolarchart1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_qmlpolarchart1.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_qmlpolarchart2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_qmlpolarchart2.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_qmlpolarchart3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_qmlpolarchart3.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_stackedbarchart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_stackedbarchart.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_zoomlinechart1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_zoomlinechart1.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_zoomlinechart2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_zoomlinechart2.png -------------------------------------------------------------------------------- /src/chartsqml2/designer/images/barseries-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/chartsqml2/designer/images/barseries-icon.png -------------------------------------------------------------------------------- /src/chartsqml2/designer/images/barseries-icon16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/chartsqml2/designer/images/barseries-icon16.png -------------------------------------------------------------------------------- /examples/charts/chartsgallery/data/blue_triangle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/examples/charts/chartsgallery/data/blue_triangle.png -------------------------------------------------------------------------------- /examples/charts/chartsgallery/data/green_triangle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/examples/charts/chartsgallery/data/green_triangle.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_chartthemes_light.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_chartthemes_light.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_horizontalbarchart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_horizontalbarchart.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_pointconfiguration.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_pointconfiguration.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_qmlcustomizations.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_qmlcustomizations.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_temperaturerecords.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_temperaturerecords.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_scatterinteractions.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_scatterinteractions.png -------------------------------------------------------------------------------- /src/charts/doc/images/xyseries_point_configuration.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/xyseries_point_configuration.png -------------------------------------------------------------------------------- /src/chartsqml2/designer/images/areaseries-chart-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/chartsqml2/designer/images/areaseries-chart-icon.png -------------------------------------------------------------------------------- /src/chartsqml2/designer/images/areaseries-polar-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/chartsqml2/designer/images/areaseries-polar-icon.png -------------------------------------------------------------------------------- /src/chartsqml2/designer/images/lineseries-chart-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/chartsqml2/designer/images/lineseries-chart-icon.png -------------------------------------------------------------------------------- /src/chartsqml2/designer/images/lineseries-polar-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/chartsqml2/designer/images/lineseries-polar-icon.png -------------------------------------------------------------------------------- /src/chartsqml2/designer/images/percentbarseries-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/chartsqml2/designer/images/percentbarseries-icon.png -------------------------------------------------------------------------------- /src/chartsqml2/designer/images/pieseries-chart-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/chartsqml2/designer/images/pieseries-chart-icon.png -------------------------------------------------------------------------------- /src/chartsqml2/designer/images/stackedbarseries-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/chartsqml2/designer/images/stackedbarseries-icon.png -------------------------------------------------------------------------------- /tests/manual/wavechart/wavechart.pro: -------------------------------------------------------------------------------- 1 | include( ../../tests.pri ) 2 | TARGET = wavechart 3 | SOURCES += main.cpp wavechart.cpp 4 | HEADERS += wavechart.h 5 | -------------------------------------------------------------------------------- /examples/charts/qmlweather/resources.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | qml/qmlweather/main.qml 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/charts/doc/images/examples_chartthemes_brown_sand.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_chartthemes_brown_sand.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_percentbarchart_legend.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_percentbarchart_legend.png -------------------------------------------------------------------------------- /src/chartsqml2/designer/images/areaseries-chart-icon16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/chartsqml2/designer/images/areaseries-chart-icon16.png -------------------------------------------------------------------------------- /src/chartsqml2/designer/images/areaseries-polar-icon16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/chartsqml2/designer/images/areaseries-polar-icon16.png -------------------------------------------------------------------------------- /src/chartsqml2/designer/images/lineseries-chart-icon16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/chartsqml2/designer/images/lineseries-chart-icon16.png -------------------------------------------------------------------------------- /src/chartsqml2/designer/images/lineseries-polar-icon16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/chartsqml2/designer/images/lineseries-polar-icon16.png -------------------------------------------------------------------------------- /src/chartsqml2/designer/images/percentbarseries-icon16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/chartsqml2/designer/images/percentbarseries-icon16.png -------------------------------------------------------------------------------- /src/chartsqml2/designer/images/pieseries-chart-icon16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/chartsqml2/designer/images/pieseries-chart-icon16.png -------------------------------------------------------------------------------- /src/chartsqml2/designer/images/splineseries-chart-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/chartsqml2/designer/images/splineseries-chart-icon.png -------------------------------------------------------------------------------- /src/chartsqml2/designer/images/splineseries-polar-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/chartsqml2/designer/images/splineseries-polar-icon.png -------------------------------------------------------------------------------- /src/chartsqml2/designer/images/stackedbarseries-icon16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/chartsqml2/designer/images/stackedbarseries-icon16.png -------------------------------------------------------------------------------- /tests/tests.pri: -------------------------------------------------------------------------------- 1 | TEMPLATE = app 2 | 3 | QT += opengl openglwidgets charts 4 | 5 | target.path = $$[QT_INSTALL_TESTS]/charts/$$TARGET 6 | INSTALLS += target 7 | -------------------------------------------------------------------------------- /src/charts/doc/images/examples_chartthemes_blue_cerulean.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_chartthemes_blue_cerulean.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_horizontalpercentbarchart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_horizontalpercentbarchart.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_horizontalstackedbarchart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_horizontalstackedbarchart.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_pointsselectionandmarkers1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_pointsselectionandmarkers1.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_pointsselectionandmarkers2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_pointsselectionandmarkers2.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_stackedbarchartdrilldown1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_stackedbarchartdrilldown1.png -------------------------------------------------------------------------------- /src/charts/doc/images/examples_stackedbarchartdrilldown2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/charts/doc/images/examples_stackedbarchartdrilldown2.png -------------------------------------------------------------------------------- /src/chartsqml2/designer/images/boxplotseries-chart-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/chartsqml2/designer/images/boxplotseries-chart-icon.png -------------------------------------------------------------------------------- /src/chartsqml2/designer/images/boxplotseries-chart-icon16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/chartsqml2/designer/images/boxplotseries-chart-icon16.png -------------------------------------------------------------------------------- /src/chartsqml2/designer/images/horizontalbarseries-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/chartsqml2/designer/images/horizontalbarseries-icon.png -------------------------------------------------------------------------------- /src/chartsqml2/designer/images/horizontalbarseries-icon16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/chartsqml2/designer/images/horizontalbarseries-icon16.png -------------------------------------------------------------------------------- /src/chartsqml2/designer/images/scatterseries-chart-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/chartsqml2/designer/images/scatterseries-chart-icon.png -------------------------------------------------------------------------------- /src/chartsqml2/designer/images/scatterseries-chart-icon16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/chartsqml2/designer/images/scatterseries-chart-icon16.png -------------------------------------------------------------------------------- /src/chartsqml2/designer/images/scatterseries-polar-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/chartsqml2/designer/images/scatterseries-polar-icon.png -------------------------------------------------------------------------------- /src/chartsqml2/designer/images/scatterseries-polar-icon16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/chartsqml2/designer/images/scatterseries-polar-icon16.png -------------------------------------------------------------------------------- /src/chartsqml2/designer/images/splineseries-chart-icon16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/chartsqml2/designer/images/splineseries-chart-icon16.png -------------------------------------------------------------------------------- /src/chartsqml2/designer/images/splineseries-polar-icon16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/chartsqml2/designer/images/splineseries-polar-icon16.png -------------------------------------------------------------------------------- /examples/charts/chartsgallery/doc/images/ChartWidgetGallery.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/examples/charts/chartsgallery/doc/images/ChartWidgetGallery.png -------------------------------------------------------------------------------- /examples/charts/chartsgallery/doc/src/gallery.qdocinc: -------------------------------------------------------------------------------- 1 | \ingroup charts_widget_gallery_example 2 | \note This is part of the \l{Charts with Widgets Gallery} example. 3 | -------------------------------------------------------------------------------- /examples/charts/qmlchartsgallery/doc/images/QMLChartsGallery.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/examples/charts/qmlchartsgallery/doc/images/QMLChartsGallery.png -------------------------------------------------------------------------------- /src/chartsqml2/designer/images/horizontalpercentbarseries-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/chartsqml2/designer/images/horizontalpercentbarseries-icon.png -------------------------------------------------------------------------------- /src/chartsqml2/designer/images/horizontalstackedbarseries-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/chartsqml2/designer/images/horizontalstackedbarseries-icon.png -------------------------------------------------------------------------------- /tests/manual/qmlchartaxis/qmlchartaxis.pro: -------------------------------------------------------------------------------- 1 | include( ../../tests.pri ) 2 | 3 | RESOURCES += resources.qrc 4 | SOURCES += main.cpp 5 | OTHER_FILES += qml/qmlchartaxis/* 6 | 7 | -------------------------------------------------------------------------------- /examples/charts/qmlchartsgallery/doc/src/qmlchartsgallery.qdocinc: -------------------------------------------------------------------------------- 1 | \ingroup charts_qml_gallery_example 2 | \note This is part of the \l{Charts with QML Gallery} example. 3 | -------------------------------------------------------------------------------- /plugins/designer/qchartsplugin.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | qcharts.png 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/chartsqml2/designer/images/horizontalpercentbarseries-icon16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/chartsqml2/designer/images/horizontalpercentbarseries-icon16.png -------------------------------------------------------------------------------- /src/chartsqml2/designer/images/horizontalstackedbarseries-icon16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtcharts/dev/src/chartsqml2/designer/images/horizontalstackedbarseries-icon16.png -------------------------------------------------------------------------------- /plugins/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 The Qt Company Ltd. 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | # Generated from plugins.pro. 5 | 6 | add_subdirectory(designer) 7 | -------------------------------------------------------------------------------- /tests/manual/qmlchartproperties/qmlchartproperties.pro: -------------------------------------------------------------------------------- 1 | include( ../../tests.pri ) 2 | RESOURCES += resources.qrc 3 | SOURCES += main.cpp 4 | OTHER_FILES += qml/qmlchartproperties/* 5 | 6 | -------------------------------------------------------------------------------- /tests/auto/qpieseries/BLACKLIST: -------------------------------------------------------------------------------- 1 | # QTBUG-102723 2 | [clickedSignal] 3 | android 4 | [pressedSignal] 5 | android 6 | [releasedSignal] 7 | android 8 | [doubleClickedSignal] 9 | android 10 | -------------------------------------------------------------------------------- /tests/auto/qpieslice/BLACKLIST: -------------------------------------------------------------------------------- 1 | # QTBUG-102723 2 | [clickedSignal] 3 | android 4 | [pressedSignal] 5 | android 6 | [releasedSignal] 7 | android 8 | [doubleClickedSignal] 9 | android 10 | -------------------------------------------------------------------------------- /tests/manual/presenterchart/presenterchart.pro: -------------------------------------------------------------------------------- 1 | include( ../../tests.pri ) 2 | 3 | TARGET = presenterchart 4 | HEADERS += chartview.h 5 | SOURCES += main.cpp chartview.cpp 6 | 7 | QT += widgets 8 | -------------------------------------------------------------------------------- /tests/manual/barcharttester/barcharttester.pro: -------------------------------------------------------------------------------- 1 | QT += core gui charts widgets 2 | 3 | TARGET = barcharttester 4 | TEMPLATE = app 5 | 6 | SOURCES += main.cpp\ 7 | chart-widget.cpp 8 | 9 | HEADERS += chart-widget.h 10 | -------------------------------------------------------------------------------- /dist/changes-2.1.1: -------------------------------------------------------------------------------- 1 | Qt Charts 2.1.1 2 | 3 | Fixed issues 4 | ------------ 5 | - Fixed crash with empty BarSet values 6 | - Fixed model resetting with model mapper 7 | - Fixed crash when axis range is infinite 8 | - Fixed clearing the chart title 9 | -------------------------------------------------------------------------------- /examples/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 The Qt Company Ltd. 2 | # SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | qt_examples_build_begin(EXTERNAL_BUILD) 5 | 6 | add_subdirectory(charts) 7 | 8 | qt_examples_build_end() 9 | -------------------------------------------------------------------------------- /tests/manual/chartviewer/chartviewer.pro: -------------------------------------------------------------------------------- 1 | include( ../../tests.pri ) 2 | include(charts/charts.pri) 3 | TARGET = chartviewer 4 | INCLUDEPATH += . 5 | SOURCES += main.cpp window.cpp view.cpp grid.cpp 6 | HEADERS += window.h view.h charts.h model.h grid.h 7 | 8 | -------------------------------------------------------------------------------- /examples/charts/openglseries/openglseries.pro: -------------------------------------------------------------------------------- 1 | QT += charts 2 | 3 | HEADERS += \ 4 | datasource.h 5 | 6 | SOURCES += \ 7 | datasource.cpp \ 8 | main.cpp 9 | 10 | target.path = $$[QT_INSTALL_EXAMPLES]/charts/openglseries 11 | INSTALLS += target 12 | -------------------------------------------------------------------------------- /tests/manual/candlesticktester/candlesticktester.pro: -------------------------------------------------------------------------------- 1 | include( ../../tests.pri ) 2 | 3 | QT += widgets 4 | 5 | SOURCES += main.cpp \ 6 | mainwidget.cpp \ 7 | customtablemodel.cpp 8 | 9 | HEADERS += \ 10 | mainwidget.h \ 11 | customtablemodel.h 12 | -------------------------------------------------------------------------------- /dist/REUSE.toml: -------------------------------------------------------------------------------- 1 | version = 1 2 | 3 | [[annotations]] 4 | path = ["*"] 5 | precedence = "override" 6 | comment = "Licensed as documentation." 7 | SPDX-FileCopyrightText = "Copyright (C) The Qt Company Ltd." 8 | SPDX-License-Identifier = "LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only" 9 | -------------------------------------------------------------------------------- /tests/manual/chartwidgettest/chartwidgettest.pro: -------------------------------------------------------------------------------- 1 | include( ../../tests.pri ) 2 | TEMPLATE = app 3 | 4 | QT += core gui widgets 5 | 6 | SOURCES += main.cpp \ 7 | mainwidget.cpp \ 8 | dataseriedialog.cpp 9 | 10 | HEADERS += \ 11 | mainwidget.h \ 12 | dataseriedialog.h 13 | -------------------------------------------------------------------------------- /examples/charts/qmlweather/qmlweather.pro: -------------------------------------------------------------------------------- 1 | QT += charts qml quick 2 | 3 | SOURCES += \ 4 | main.cpp 5 | 6 | RESOURCES += \ 7 | resources.qrc 8 | 9 | DISTFILES += \ 10 | qml/qmlweather/* 11 | 12 | target.path = $$[QT_INSTALL_EXAMPLES]/charts/qmlweather 13 | INSTALLS += target 14 | -------------------------------------------------------------------------------- /examples/charts/zoomlinechart/zoomlinechart.pro: -------------------------------------------------------------------------------- 1 | QT += charts 2 | 3 | HEADERS += \ 4 | chart.h \ 5 | chartview.h 6 | 7 | SOURCES += \ 8 | main.cpp \ 9 | chart.cpp \ 10 | chartview.cpp 11 | 12 | target.path = $$[QT_INSTALL_EXAMPLES]/charts/zoomlinechart 13 | INSTALLS += target 14 | -------------------------------------------------------------------------------- /dist/changes-2.0.1: -------------------------------------------------------------------------------- 1 | Qt Charts 2.0.1 2 | 3 | Fixed issues 4 | ------------ 5 | - Fixed animation crash 6 | - Fixed QBarSet label color setting 7 | - Fixed bar series zoom out 8 | - Fixed documentation issues 9 | - Fixed QML XYSeries::insert exception 10 | - Fixed model mapper modelReset signal handling 11 | -------------------------------------------------------------------------------- /.cmake.conf: -------------------------------------------------------------------------------- 1 | set(QT_REPO_MODULE_VERSION "6.12.0") 2 | set(QT_REPO_MODULE_PRERELEASE_VERSION_SEGMENT "alpha1") 3 | set(QT_EXTRA_INTERNAL_TARGET_DEFINES "QT_NO_QASCONST=1") 4 | list(APPEND QT_EXTRA_INTERNAL_TARGET_DEFINES "QT_NO_FOREACH=1") 5 | list(APPEND QT_EXTRA_INTERNAL_TARGET_DEFINES "QT_NO_CONTEXTLESS_CONNECT=1") 6 | -------------------------------------------------------------------------------- /dist/changes-5.7.0: -------------------------------------------------------------------------------- 1 | Qt Charts 5.7.0 2 | 3 | New features 4 | ------------ 5 | - Added support for showing tooltips when the legend text is truncated 6 | - No longer automatically disable QDateTimeAxis on ARM platforms 7 | 8 | Fixed issues 9 | ------------ 10 | - Fixed reversed axis when useOpenGL is true 11 | -------------------------------------------------------------------------------- /dependencies.yaml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | ../qtbase: 3 | ref: df1292e2b96aab02ad6df778d8336e7958ad5d1c 4 | required: true 5 | ../qtdeclarative: 6 | ref: 7ef1d06ce70fa360613dca0b5ff03365ebbc9883 7 | required: false 8 | ../qtmultimedia: 9 | ref: a2ff9baab792bf5d0bf2d7d626f7959329ef35d7 10 | required: false 11 | -------------------------------------------------------------------------------- /src/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 The Qt Company Ltd. 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | # Generated from src.pro. 5 | 6 | set(QT_SBOM_DEFAULT_QT_LICENSE_ID_LIBRARIES "QT_COMMERCIAL_OR_GPL3") 7 | 8 | add_subdirectory(charts) 9 | if(TARGET Qt::Quick) 10 | add_subdirectory(chartsqml2) 11 | endif() 12 | -------------------------------------------------------------------------------- /examples/charts/qmlchartsgallery/qmlchartsgallery.pro: -------------------------------------------------------------------------------- 1 | QT += charts qml quick 2 | 3 | SOURCES += main.cpp 4 | 5 | RESOURCES += qmlchartsgallery.qrc 6 | 7 | DISTFILES += \ 8 | qml/* \ 9 | qml/customlegend/* \ 10 | qml/f1legends/* 11 | 12 | target.path = $$[QT_INSTALL_EXAMPLES]/charts/qmlchartsgallery 13 | INSTALLS += target 14 | -------------------------------------------------------------------------------- /examples/charts/qmloscilloscope/resources.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | qml/qmloscilloscope/main.qml 4 | qml/qmloscilloscope/ControlPanel.qml 5 | qml/qmloscilloscope/ScopeView.qml 6 | qml/qmloscilloscope/MultiButton.qml 7 | 8 | 9 | -------------------------------------------------------------------------------- /tests/manual/boxplottester/boxplottester.pro: -------------------------------------------------------------------------------- 1 | include( ../../tests.pri ) 2 | TEMPLATE = app 3 | 4 | QT += charts 5 | QT += core gui widgets 6 | 7 | SOURCES += main.cpp \ 8 | mainwidget.cpp \ 9 | customtablemodel.cpp \ 10 | pentool.cpp 11 | 12 | HEADERS += \ 13 | mainwidget.h \ 14 | customtablemodel.h \ 15 | pentool.h 16 | -------------------------------------------------------------------------------- /tests/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 The Qt Company Ltd. 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | # Generated from tests.pro. 5 | 6 | if(QT_BUILD_STANDALONE_TESTS) 7 | # Add qt_find_package calls for extra dependencies that need to be found when building 8 | # the standalone tests here. 9 | endif() 10 | qt_build_tests() 11 | -------------------------------------------------------------------------------- /tests/manual/chartdesigner/brushwidget.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | #include "brushwidget.h" 5 | 6 | BrushWidget::BrushWidget(QWidget *parent):QWidget(parent) 7 | { 8 | 9 | 10 | } 11 | 12 | BrushWidget::~BrushWidget() 13 | { 14 | 15 | } 16 | 17 | -------------------------------------------------------------------------------- /examples/charts/qmlchartsgallery/qml/customlegend/AnimatedAreaSeries.qml: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | import QtQuick 5 | import QtCharts 6 | 7 | AreaSeries { 8 | id: series 9 | 10 | Behavior on opacity { 11 | NumberAnimation { duration: 250 } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /examples/charts/audio/audio.pro: -------------------------------------------------------------------------------- 1 | QT += charts multimedia 2 | 3 | HEADERS += \ 4 | widget.h \ 5 | xyseriesiodevice.h 6 | 7 | SOURCES += \ 8 | main.cpp\ 9 | widget.cpp \ 10 | xyseriesiodevice.cpp 11 | 12 | darwin{ 13 | QMAKE_INFO_PLIST = apple/Info.qmake.plist 14 | } 15 | 16 | target.path = $$[QT_INSTALL_EXAMPLES]/charts/audio 17 | INSTALLS += target 18 | -------------------------------------------------------------------------------- /examples/charts/qmloscilloscope/qmloscilloscope.pro: -------------------------------------------------------------------------------- 1 | QT += charts qml quick 2 | 3 | HEADERS += \ 4 | datasource.h 5 | 6 | SOURCES += \ 7 | main.cpp \ 8 | datasource.cpp 9 | 10 | RESOURCES += \ 11 | resources.qrc 12 | 13 | DISTFILES += \ 14 | qml/qmloscilloscope/* 15 | 16 | target.path = $$[QT_INSTALL_EXAMPLES]/charts/qmloscilloscope 17 | INSTALLS += target 18 | -------------------------------------------------------------------------------- /tests/manual/polarcharttest/polarcharttest.pro: -------------------------------------------------------------------------------- 1 | include( ../../tests.pri ) 2 | QT += core gui widgets 3 | 4 | TARGET = polarcharttest 5 | TEMPLATE = app 6 | INCLUDEPATH += . 7 | 8 | 9 | SOURCES += main.cpp \ 10 | mainwindow.cpp \ 11 | chartview.cpp 12 | 13 | HEADERS += mainwindow.h \ 14 | chartview.h 15 | 16 | FORMS += mainwindow.ui 17 | -------------------------------------------------------------------------------- /tests/manual/openglseriestest/main.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | #include "mainwindow.h" 5 | #include 6 | 7 | int main(int argc, char *argv[]) 8 | { 9 | QApplication a(argc, argv); 10 | MainWindow w; 11 | w.show(); 12 | 13 | return a.exec(); 14 | } 15 | -------------------------------------------------------------------------------- /tests/manual/polarcharttest/main.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | #include "mainwindow.h" 5 | #include 6 | 7 | int main(int argc, char *argv[]) 8 | { 9 | QApplication a(argc, argv); 10 | MainWindow w; 11 | w.show(); 12 | 13 | return a.exec(); 14 | } 15 | -------------------------------------------------------------------------------- /tests/auto/qml-qtquicktest/main.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | #include 5 | #include 6 | 7 | int main(int argc, char *argv[]) 8 | { 9 | QApplication app(argc, argv); 10 | return quick_test_main(argc, argv, "example", QUICK_TEST_SOURCE_DIR); 11 | } 12 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/barwidget.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef BARWIDGET_H 5 | #define BARWIDGET_H 6 | 7 | #include "contentwidget.h" 8 | 9 | class BarWidget : public ContentWidget 10 | { 11 | Q_OBJECT 12 | public: 13 | explicit BarWidget(QWidget *parent = nullptr); 14 | }; 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/piewidget.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef PIEWIDGET_H 5 | #define PIEWIDGET_H 6 | 7 | #include "contentwidget.h" 8 | 9 | class PieWidget : public ContentWidget 10 | { 11 | Q_OBJECT 12 | public: 13 | explicit PieWidget(QWidget *parent = nullptr); 14 | }; 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/areawidget.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef AREAWIDGET_H 5 | #define AREAWIDGET_H 6 | 7 | #include "contentwidget.h" 8 | 9 | class AreaWidget : public ContentWidget 10 | { 11 | Q_OBJECT 12 | public: 13 | explicit AreaWidget(QWidget *parent = nullptr); 14 | }; 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/linewidget.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef LINEWIDGET_H 5 | #define LINEWIDGET_H 6 | 7 | #include "contentwidget.h" 8 | 9 | class LineWidget : public ContentWidget 10 | { 11 | Q_OBJECT 12 | public: 13 | explicit LineWidget(QWidget *parent = nullptr); 14 | }; 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /tests/manual/barcharttester/main.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | #include "chart-widget.h" 5 | #include 6 | 7 | int main(int argc, char *argv[]) 8 | { 9 | QApplication a(argc, argv); 10 | 11 | ChartWidget w; 12 | w.resize(1200, 800); 13 | w.show(); 14 | 15 | return a.exec(); 16 | } 17 | -------------------------------------------------------------------------------- /tests/manual/openglseriestest/openglseriestest.pro: -------------------------------------------------------------------------------- 1 | include( ../../tests.pri ) 2 | QT += core gui widgets 3 | 4 | TARGET = openglseriestest 5 | TEMPLATE = app 6 | 7 | SOURCES += main.cpp \ 8 | mainwindow.cpp \ 9 | chartview.cpp \ 10 | datasource.cpp 11 | 12 | HEADERS += mainwindow.h \ 13 | chartview.h \ 14 | datasource.h 15 | 16 | FORMS += mainwindow.ui 17 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/donutwidget.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef DONUTWIDGET_H 5 | #define DONUTWIDGET_H 6 | 7 | #include "contentwidget.h" 8 | 9 | class DonutWidget : public ContentWidget 10 | { 11 | Q_OBJECT 12 | public: 13 | explicit DonutWidget(QWidget *parent = nullptr); 14 | }; 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/splinewidget.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef SPLINEWIDGET_H 5 | #define SPLINEWIDGET_H 6 | 7 | #include "contentwidget.h" 8 | 9 | class SplineWidget : public ContentWidget 10 | { 11 | Q_OBJECT 12 | public: 13 | explicit SplineWidget(QWidget *parent = nullptr); 14 | }; 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /src/chartsqml2/designer/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 The Qt Company Ltd. 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | qt_path_join(destination ${QT_INSTALL_DIR} "${INSTALL_QMLDIR}/QtCharts/designer") 5 | qt_copy_or_install( 6 | FILES 7 | ChartViewSpecifics.qml 8 | qtcharts.metainfo 9 | DESTINATION ${destination} 10 | ) 11 | 12 | add_subdirectory(default) 13 | add_subdirectory(images) 14 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/logaxiswidget.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef LOGAXISWIDGET_H 5 | #define LOGAXISWIDGET_H 6 | 7 | #include "contentwidget.h" 8 | 9 | class LogAxisWidget : public ContentWidget 10 | { 11 | Q_OBJECT 12 | public: 13 | explicit LogAxisWidget(QWidget *parent = nullptr); 14 | }; 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/scatterwidget.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef SCATTERWIDGET_H 5 | #define SCATTERWIDGET_H 6 | 7 | #include "contentwidget.h" 8 | 9 | class ScatterWidget : public ContentWidget 10 | { 11 | Q_OBJECT 12 | public: 13 | explicit ScatterWidget(QWidget *parent = nullptr); 14 | }; 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /tests/manual/chartdesigner/main.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | #include "mainwindow.h" 5 | #include 6 | 7 | int main(int argc, char *argv[]) 8 | { 9 | QApplication a(argc, argv); 10 | 11 | MainWindow window; 12 | window.resize(1000,600); 13 | window.show(); 14 | return a.exec(); 15 | } 16 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/modeldatawidget.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef MODELDATAWIDGET_H 5 | #define MODELDATAWIDGET_H 6 | 7 | #include "contentwidget.h" 8 | 9 | class ModelDataWidget : public ContentWidget 10 | { 11 | Q_OBJECT 12 | 13 | public: 14 | ModelDataWidget(QWidget *parent = nullptr); 15 | }; 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/multiaxiswidget.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef MULTIAXISWIDGET_H 5 | #define MULTIAXISWIDGET_H 6 | 7 | #include "contentwidget.h" 8 | 9 | class MultiAxisWidget : public ContentWidget 10 | { 11 | Q_OBJECT 12 | public: 13 | explicit MultiAxisWidget(QWidget *parent = nullptr); 14 | }; 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/barpercentwidget.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef BARPERCENTWIDGET_H 5 | #define BARPERCENTWIDGET_H 6 | 7 | #include "contentwidget.h" 8 | 9 | class BarPercentWidget : public ContentWidget 10 | { 11 | Q_OBJECT 12 | public: 13 | explicit BarPercentWidget(QWidget *parent = nullptr); 14 | }; 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/barstackedwidget.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef BARSTACKEDWIDGET_H 5 | #define BARSTACKEDWIDGET_H 6 | 7 | #include "contentwidget.h" 8 | 9 | class BarStackedWidget : public ContentWidget 10 | { 11 | Q_OBJECT 12 | public: 13 | explicit BarStackedWidget(QWidget *parent = nullptr); 14 | }; 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/lineandbarwidget.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef LINEANDBARWIDGET_H 5 | #define LINEANDBARWIDGET_H 6 | 7 | #include "contentwidget.h" 8 | 9 | class LineAndBarWidget : public ContentWidget 10 | { 11 | Q_OBJECT 12 | public: 13 | explicit LineAndBarWidget(QWidget *parent = nullptr); 14 | }; 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/customchartwidget.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef CUSTOMCHARTWIDGET_H 5 | #define CUSTOMCHARTWIDGET_H 6 | 7 | #include "contentwidget.h" 8 | 9 | class CustomChartWidget : public ContentWidget 10 | { 11 | Q_OBJECT 12 | public: 13 | explicit CustomChartWidget(QWidget *parent = nullptr); 14 | }; 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/main.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #include "mainwidget.h" 5 | 6 | #include 7 | #include 8 | #include 9 | 10 | int main(int argc, char *argv[]) 11 | { 12 | QApplication a(argc, argv); 13 | 14 | MainWidget w; 15 | w.show(); 16 | 17 | return a.exec(); 18 | } 19 | -------------------------------------------------------------------------------- /tests/manual/boxplottester/main.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | #include 5 | #include 6 | #include "mainwidget.h" 7 | 8 | int main(int argc, char *argv[]) 9 | { 10 | QApplication a(argc, argv); 11 | 12 | MainWidget w; 13 | w.resize(1000,600); 14 | w.show(); 15 | 16 | return a.exec(); 17 | } 18 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/interactionswidget.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef INTERACTIONSWIDGET_H 5 | #define INTERACTIONSWIDGET_H 6 | 7 | #include "contentwidget.h" 8 | 9 | class InteractionsWidget : public ContentWidget 10 | { 11 | Q_OBJECT 12 | public: 13 | explicit InteractionsWidget(QWidget *parent = nullptr); 14 | }; 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/piedrilldownwidget.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef PIEDRILLDOWNWIDGET_H 5 | #define PIEDRILLDOWNWIDGET_H 6 | 7 | #include "contentwidget.h" 8 | 9 | class PieDrilldownWidget : public ContentWidget 10 | { 11 | Q_OBJECT 12 | public: 13 | explicit PieDrilldownWidget(QWidget *parent = nullptr); 14 | }; 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /tests/manual/chartwidgettest/main.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | #include 5 | #include 6 | #include "mainwidget.h" 7 | 8 | int main(int argc, char *argv[]) 9 | { 10 | QApplication a(argc, argv); 11 | 12 | MainWidget w; 13 | w.resize(1000,600); 14 | w.show(); 15 | 16 | return a.exec(); 17 | } 18 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/horizontalbarwidget.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef HORIZONTALBARWIDGET_H 5 | #define HORIZONTALBARWIDGET_H 6 | 7 | #include "contentwidget.h" 8 | 9 | class HorizontalBarWidget : public ContentWidget 10 | { 11 | Q_OBJECT 12 | public: 13 | explicit HorizontalBarWidget(QWidget *parent = nullptr); 14 | }; 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /plugins/designer/designer.pro: -------------------------------------------------------------------------------- 1 | CONFIG += plugin 2 | 3 | TEMPLATE = lib 4 | 5 | TARGET = $$qtLibraryTarget(qtchartsdesigner) 6 | 7 | QT += charts 8 | QT += designer 9 | 10 | INCLUDEPATH += $$PWD 11 | DEPENDPATH += $$PWD 12 | INCLUDEPATH += ../../../include 13 | 14 | HEADERS = $$PWD/qchartsplugin.h 15 | SOURCES = $$PWD/qchartsplugin.cpp 16 | RESOURCES = $$PWD/qchartsplugin.qrc 17 | 18 | target.path = $$[QT_INSTALL_PLUGINS]/designer 19 | INSTALLS += target 20 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/donutbreakdownwidget.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef DONUTBREAKDOWNWIDGET_H 5 | #define DONUTBREAKDOWNWIDGET_H 6 | 7 | #include "contentwidget.h" 8 | 9 | class DonutBreakdownWidget : public ContentWidget 10 | { 11 | Q_OBJECT 12 | public: 13 | explicit DonutBreakdownWidget(QWidget *parent = nullptr); 14 | }; 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/stackeddrilldownwidget.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef STACKEDDRILLDOWNWIDGET_H 5 | #define STACKEDDRILLDOWNWIDGET_H 6 | 7 | #include "contentwidget.h" 8 | 9 | class StackedDrilldownWidget : public ContentWidget 10 | { 11 | Q_OBJECT 12 | public: 13 | explicit StackedDrilldownWidget(QWidget *parent = nullptr); 14 | }; 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /tests/manual/openglseriestest/chartview.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | #ifndef CHARTVIEW_H 5 | #define CHARTVIEW_H 6 | 7 | #include 8 | 9 | QT_USE_NAMESPACE 10 | 11 | class ChartView : public QChartView 12 | { 13 | public: 14 | ChartView(QWidget *parent = 0); 15 | 16 | protected: 17 | void keyPressEvent(QKeyEvent *event); 18 | }; 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/polarchartwidget.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef POLARCHARTWIDGET_H 5 | #define POLARCHARTWIDGET_H 6 | 7 | #include "contentwidget.h" 8 | 9 | class PolarChartView; 10 | 11 | class PolarChartWidget : public ContentWidget 12 | { 13 | Q_OBJECT 14 | public: 15 | explicit PolarChartWidget(QWidget *parent = nullptr); 16 | }; 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/boxplotwidget.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef BOXPLOTWIDGET_H 5 | #define BOXPLOTWIDGET_H 6 | 7 | #include "contentwidget.h" 8 | 9 | class BoxPlotWidget : public ContentWidget 10 | { 11 | Q_OBJECT 12 | public: 13 | explicit BoxPlotWidget(QWidget *parent = nullptr); 14 | 15 | protected: 16 | bool doLoad() override; 17 | }; 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/temperaturerecordswidget.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef TEMPERATURERECORDSWIDGET_H 5 | #define TEMPERATURERECORDSWIDGET_H 6 | 7 | #include "contentwidget.h" 8 | 9 | class TemperatureRecordsWidget : public ContentWidget 10 | { 11 | Q_OBJECT 12 | public: 13 | explicit TemperatureRecordsWidget(QWidget *parent = nullptr); 14 | }; 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /src/charts/doc/src/qtcharts-module-use.qdocinc: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2025 Samuel Gaist 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only 3 | 4 | //! [cmakebuild] 5 | \code 6 | find_package(Qt6 COMPONENTS Charts REQUIRED) 7 | target_link_libraries(mytarget PRIVATE Qt6::Charts) 8 | \endcode 9 | //! [cmakebuild] 10 | 11 | //! [qmakebuild] 12 | \code 13 | QT += charts 14 | \endcode 15 | //! [qmakebuild] 16 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/horizontalpercentbarwidget.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef HORIZONTALPERCENTBARWIDGET_H 5 | #define HORIZONTALPERCENTBARWIDGET_H 6 | 7 | #include "contentwidget.h" 8 | 9 | class HorizontalPercentBarWidget : public ContentWidget 10 | { 11 | Q_OBJECT 12 | public: 13 | explicit HorizontalPercentBarWidget(QWidget *parent = nullptr); 14 | }; 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/horizontalstackedbarwidget.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef HORIZONTALSTACKEDBARWIDGET_H 5 | #define HORIZONTALSTACKEDBARWIDGET_H 6 | 7 | #include "contentwidget.h" 8 | 9 | class HorizontalStackedBarWidget : public ContentWidget 10 | { 11 | Q_OBJECT 12 | public: 13 | explicit HorizontalStackedBarWidget(QWidget *parent = nullptr); 14 | }; 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /tests/manual/candlesticktester/main.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | #include 5 | #include "mainwidget.h" 6 | 7 | int main(int argc, char *argv[]) 8 | { 9 | QApplication a(argc, argv); 10 | 11 | MainWidget w; 12 | w.setWindowTitle(QStringLiteral("Candlestick Chart Tester")); 13 | w.resize(1280, 720); 14 | w.show(); 15 | 16 | return a.exec(); 17 | } 18 | -------------------------------------------------------------------------------- /src/chartsqml2/designer/default/ScatterSeries.qml: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | import QtQuick 2.0 5 | import QtCharts 2.0 6 | 7 | ChartView { 8 | width: 300 9 | height: 300 10 | 11 | ScatterSeries { 12 | name: "ScatterSeries" 13 | XYPoint { x: 1; y: 1 } 14 | XYPoint { x: 2; y: 4 } 15 | XYPoint { x: 4; y: 2 } 16 | XYPoint { x: 5; y: 5 } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/barmodelmapperwidget.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef BARMODELMAPPERWIDGET_H 5 | #define BARMODELMAPPERWIDGET_H 6 | 7 | #include "contentwidget.h" 8 | 9 | QT_FORWARD_DECLARE_CLASS(QChartView) 10 | 11 | class BarModelMapperWidget : public ContentWidget 12 | { 13 | Q_OBJECT 14 | public: 15 | BarModelMapperWidget(QWidget *parent = nullptr); 16 | }; 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/candlestickwidget.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef CANDLESTICKWIDGET_H 5 | #define CANDLESTICKWIDGET_H 6 | 7 | #include "contentwidget.h" 8 | 9 | class CandleStickWidget : public ContentWidget 10 | { 11 | Q_OBJECT 12 | public: 13 | explicit CandleStickWidget(QWidget *parent = nullptr); 14 | 15 | protected: 16 | bool doLoad() override; 17 | }; 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /src/chartsqml2/designer/default/LineSeries.qml: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | import QtQuick 2.0 5 | import QtCharts 2.0 6 | 7 | 8 | ChartView { 9 | width: 300 10 | height: 300 11 | 12 | LineSeries { 13 | name: "LineSeries" 14 | XYPoint { x: 0; y: 2 } 15 | XYPoint { x: 1; y: 1.2 } 16 | XYPoint { x: 2; y: 3.3 } 17 | XYPoint { x: 5; y: 2.1 } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/chartsqml2/designer/default/SplineSeries.qml: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | import QtQuick 2.0 5 | import QtCharts 2.0 6 | 7 | ChartView { 8 | width: 300 9 | height: 300 10 | 11 | SplineSeries { 12 | name: "SplineSeries" 13 | XYPoint { x: 0; y: 1 } 14 | XYPoint { x: 3; y: 4.3 } 15 | XYPoint { x: 5; y: 3.1 } 16 | XYPoint { x: 8; y: 5.8 } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/chartsgallery.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | data/boxplot_a.txt 4 | data/boxplot_b.txt 5 | data/candlestick.txt 6 | data/sun_spots.txt 7 | data/blue_triangle.png 8 | data/green_triangle.png 9 | 10 | 11 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/datetimeaxiswidget.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef DATETIMEAXISWIDGET_H 5 | #define DATETIMEAXISWIDGET_H 6 | 7 | #include "contentwidget.h" 8 | 9 | class DateTimeAxisWidget : public ContentWidget 10 | { 11 | Q_OBJECT 12 | public: 13 | explicit DateTimeAxisWidget(QWidget *parent = nullptr); 14 | 15 | protected: 16 | bool doLoad() override; 17 | }; 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /src/chartsqml2/designer/default/PieSeries.qml: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | import QtQuick 2.0 5 | import QtCharts 2.0 6 | 7 | ChartView { 8 | width: 300 9 | height: 300 10 | 11 | PieSeries { 12 | name: "PieSeries" 13 | PieSlice { label: "Slice1"; value: 13.5 } 14 | PieSlice { label: "Slice2"; value: 10.9 } 15 | PieSlice { label: "Slice3"; value: 8.6 } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tests/manual/chartdesigner/chartdesigner.pro: -------------------------------------------------------------------------------- 1 | include( ../../tests.pri ) 2 | QT += core gui 3 | 4 | SOURCES += \ 5 | brushwidget.cpp \ 6 | main.cpp \ 7 | mainwindow.cpp \ 8 | objectinspectorwidget.cpp \ 9 | penwidget.cpp \ 10 | engine.cpp 11 | 12 | 13 | HEADERS += \ 14 | brushwidget.h \ 15 | mainwindow.h \ 16 | objectinspectorwidget.h \ 17 | penwidget.h \ 18 | engine.h 19 | 20 | !system_build:mac: QMAKE_POST_LINK += "$$MAC_POST_LINK_PREFIX $$MAC_TESTS_BIN_DIR" 21 | -------------------------------------------------------------------------------- /tests/manual/polarcharttest/chartview.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | #ifndef CHARTVIEW_H 5 | #define CHARTVIEW_H 6 | 7 | #include 8 | #include 9 | 10 | QT_USE_NAMESPACE 11 | 12 | class ChartView : public QChartView 13 | { 14 | public: 15 | ChartView(QWidget *parent = 0); 16 | 17 | protected: 18 | void keyPressEvent(QKeyEvent *event); 19 | }; 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /LICENSES/LicenseRef-Qt-Commercial.txt: -------------------------------------------------------------------------------- 1 | Licensees holding valid commercial Qt licenses may use this software in 2 | accordance with the the terms contained in a written agreement between 3 | you and The Qt Company. Alternatively, the terms and conditions that were 4 | accepted by the licensee when buying and/or downloading the 5 | software do apply. 6 | 7 | For the latest licensing terms and conditions, see https://www.qt.io/terms-conditions. 8 | For further information use the contact form at https://www.qt.io/contact-us. 9 | -------------------------------------------------------------------------------- /src/charts/doc/src/qtcharts-toc.qdoc: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2024 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only 3 | 4 | /*! 5 | \page qtcharts-toc.html 6 | \title Qt Charts module topics 7 | 8 | The following list has links to all the individual topics (HTML files) 9 | in the Qt Charts module. 10 | 11 | \list 12 | \li \l {Qt Charts Overview} 13 | \li \l {Changes to Qt Charts}{Upgrading from Qt 5} 14 | \endlist 15 | 16 | */ 17 | -------------------------------------------------------------------------------- /tests/manual/chartdesigner/objectinspectorwidget.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | #ifndef INSPECTORWIDGET_H 5 | #define INSPECTORWIDGET_H 6 | 7 | #include 8 | 9 | class InspectorWidget : public QWidget 10 | { 11 | public: 12 | InspectorWidget(); 13 | ~InspectorWidget(); 14 | 15 | private: 16 | QIcon getColorIcon(const QColor& color,const QSize &size) const; 17 | 18 | }; 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /tests/manual/qmlchartproperties/qml/qmlchartproperties/ChartEditorTitle.qml: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | import QtQuick 2.0 5 | 6 | Flow { 7 | property variant chart 8 | anchors.fill: parent 9 | flow: Flow.TopToBottom 10 | spacing: 5 11 | 12 | FontEditor { 13 | fontDescription: "title" 14 | function editedFont() { 15 | return chart.titleFont; 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/polarchartview.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef POLARCHARTVIEW_H 5 | #define POLARCHARTVIEW_H 6 | 7 | #include 8 | 9 | class PolarChartView : public QChartView 10 | { 11 | public: 12 | PolarChartView(QWidget *parent = nullptr); 13 | 14 | protected: 15 | void keyPressEvent(QKeyEvent *event); 16 | 17 | private: 18 | void switchChartType(); 19 | }; 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /src/chartsqml2/designer/default/BarSeries.qml: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | import QtQuick 2.0 5 | import QtCharts 2.0 6 | 7 | 8 | ChartView { 9 | width: 300 10 | height: 300 11 | 12 | BarSeries { 13 | name: "BarSeries" 14 | BarSet { label: "Set1"; values: [2, 2, 3] } 15 | BarSet { label: "Set2"; values: [5, 1, 2] } 16 | BarSet { label: "Set3"; values: [3, 5, 8] } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/charts/doc/snippets/doc_src_qtcharts.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | //! [1] 5 | qmake CONFIG+=static 6 | make 7 | make install 8 | //! [1] 9 | 10 | //! [2] 11 | qmake 12 | make 13 | ./qmlpolarchart 14 | //! [2] 15 | 16 | //! [3] 17 | QLineSeries* series = new QLineSeries(); 18 | series->append(0, 6); 19 | series->append(2, 4); 20 | ... 21 | chartView->chart()->addSeries(series); 22 | chartView->chart()->createDefaultAxes(); 23 | //! [3] 24 | -------------------------------------------------------------------------------- /src/chartsqml2/designer/default/PercentBarSeries.qml: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | import QtQuick 2.0 5 | import QtCharts 2.0 6 | 7 | 8 | ChartView { 9 | width: 300 10 | height: 300 11 | 12 | PercentBarSeries { 13 | name: "PercentBarSeries" 14 | BarSet { label: "Set1"; values: [2, 2, 3] } 15 | BarSet { label: "Set2"; values: [5, 1, 2] } 16 | BarSet { label: "Set3"; values: [3, 5, 8] } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/chartsqml2/designer/default/StackedBarSeries.qml: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | import QtQuick 2.0 5 | import QtCharts 2.0 6 | 7 | 8 | ChartView { 9 | width: 300 10 | height: 300 11 | 12 | StackedBarSeries { 13 | name: "StackedBarSeries" 14 | BarSet { label: "Set1"; values: [2, 2, 3] } 15 | BarSet { label: "Set2"; values: [5, 1, 2] } 16 | BarSet { label: "Set3"; values: [3, 5, 8] } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /tests/auto/README: -------------------------------------------------------------------------------- 1 | Testing polar chart: 2 | 3 | Since the tests typically initialize the chart once for the whole test case, 4 | it is difficult to test the components against polar chart unless all tests 5 | are duplicated or massively refactored. Neither option is desirable, so instead 6 | we check environment variable TEST_POLAR_CHART. If it is not empty, we run 7 | the tests that are relevant for polar chart against polar chart. Unfortunately 8 | This means two runs of the tests with different environment are required for 9 | full coverage. 10 | -------------------------------------------------------------------------------- /configure.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 The Qt Company Ltd. 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | 5 | 6 | #### Inputs 7 | 8 | 9 | 10 | #### Libraries 11 | 12 | 13 | 14 | #### Tests 15 | 16 | 17 | 18 | #### Features 19 | 20 | 21 | qt_extra_definition("QT_VERSION_STR" "\"${PROJECT_VERSION}\"" PUBLIC) 22 | qt_extra_definition("QT_VERSION_MAJOR" ${PROJECT_VERSION_MAJOR} PUBLIC) 23 | qt_extra_definition("QT_VERSION_MINOR" ${PROJECT_VERSION_MINOR} PUBLIC) 24 | qt_extra_definition("QT_VERSION_PATCH" ${PROJECT_VERSION_PATCH} PUBLIC) 25 | -------------------------------------------------------------------------------- /src/chartsqml2/designer/default/HorizontalBarSeries.qml: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | import QtQuick 2.0 5 | import QtCharts 2.0 6 | 7 | 8 | ChartView { 9 | width: 300 10 | height: 300 11 | 12 | HorizontalBarSeries { 13 | name: "HorizontalBarSeries" 14 | BarSet { label: "Set1"; values: [2, 2, 3] } 15 | BarSet { label: "Set2"; values: [5, 1, 2] } 16 | BarSet { label: "Set3"; values: [3, 5, 8] } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /tests/manual/manual.pro: -------------------------------------------------------------------------------- 1 | TEMPLATE = subdirs 2 | SUBDIRS += \ 3 | presenterchart \ 4 | polarcharttest \ 5 | boxplottester \ 6 | candlesticktester \ 7 | barcharttester 8 | 9 | qtConfig(opengl) { 10 | SUBDIRS += chartwidgettest \ 11 | wavechart \ 12 | chartviewer \ 13 | openglseriestest 14 | } else { 15 | message("OpenGL not available. Some test apps are disabled") 16 | } 17 | 18 | qtHaveModule(quick) { 19 | SUBDIRS += qmlchartproperties \ 20 | qmlchartaxis 21 | } 22 | -------------------------------------------------------------------------------- /src/chartsqml2/designer/default/BoxPlotSeries.qml: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | import QtQuick 2.0 5 | import QtCharts 2.0 6 | 7 | ChartView { 8 | width: 300 9 | height: 300 10 | 11 | BoxPlotSeries { 12 | name: "BoxPlotSeries" 13 | BoxSet { label: "Set1"; values: [3, 4, 5.1, 6.2, 8.5] } 14 | BoxSet { label: "Set2"; values: [5, 6, 7.5, 8.6, 11.8] } 15 | BoxSet { label: "Set3"; values: [3.2, 5, 5.7, 8, 9.2] } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/chartsqml2/designer/default/AreaSeries.qml: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | import QtQuick 2.0 5 | import QtCharts 2.0 6 | 7 | ChartView { 8 | width: 300 9 | height: 300 10 | 11 | AreaSeries { 12 | name: "AreaSeries" 13 | upperSeries: LineSeries { 14 | XYPoint { x: 0; y: 1.5 } 15 | XYPoint { x: 1; y: 3 } 16 | XYPoint { x: 3; y: 4.3 } 17 | XYPoint { x: 6; y: 1.1 } 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/calloutwidget.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef CALLOUTWIDGET_H 5 | #define CALLOUTWIDGET_H 6 | 7 | #include "contentwidget.h" 8 | 9 | class CalloutView; 10 | 11 | class CalloutWidget : public ContentWidget 12 | { 13 | Q_OBJECT 14 | public: 15 | CalloutWidget(QWidget *parent = nullptr); 16 | 17 | protected: 18 | void resizeEvent(QResizeEvent *) override; 19 | 20 | private: 21 | CalloutView *m_view; 22 | }; 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /src/chartsqml2/designer/default/HorizontalPercentBarSeries.qml: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | import QtQuick 2.0 5 | import QtCharts 2.0 6 | 7 | 8 | ChartView { 9 | width: 300 10 | height: 300 11 | 12 | HorizontalPercentBarSeries { 13 | name: "HorizontalPercentBarSeries" 14 | BarSet { label: "Set1"; values: [2, 2, 3] } 15 | BarSet { label: "Set2"; values: [5, 1, 2] } 16 | BarSet { label: "Set3"; values: [3, 5, 8] } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/chartsqml2/designer/default/HorizontalStackedBarSeries.qml: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | import QtQuick 2.0 5 | import QtCharts 2.0 6 | 7 | 8 | ChartView { 9 | width: 300 10 | height: 300 11 | 12 | HorizontalStackedBarSeries { 13 | name: "HorizontalStackedBarSeries" 14 | BarSet { label: "Set1"; values: [2, 2, 3] } 15 | BarSet { label: "Set2"; values: [5, 1, 2] } 16 | BarSet { label: "Set3"; values: [3, 5, 8] } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /tests/manual/chartdesigner/brushwidget.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | #ifndef BRUSHWIDGET_H 5 | #define BRUSHWIDGET_H 6 | 7 | #include 8 | 9 | class BrushWidget: public QWidget 10 | { 11 | public: 12 | explicit BrushWidget(QWidget *parent = 0); 13 | ~BrushWidget(); 14 | 15 | QBrush brush() const { return m_brush; } 16 | void setBrush(const QBrush &brush); 17 | 18 | private: 19 | QBrush m_brush; 20 | }; 21 | 22 | #endif /* BRUSHWIDGET_H */ 23 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/pcccustomslice.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef PCCCUSTOMSLICE_H 5 | #define PCCCUSTOMSLICE_H 6 | 7 | #include 8 | 9 | class PccCustomSlice : public QPieSlice 10 | { 11 | Q_OBJECT 12 | public: 13 | PccCustomSlice(const QString &label, qreal value); 14 | 15 | public: 16 | QBrush originalBrush(); 17 | 18 | public slots: 19 | void showHighlight(bool show); 20 | 21 | private: 22 | QBrush m_originalBrush; 23 | }; 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /tests/manual/presenterchart/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 The Qt Company Ltd. 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | # Generated from presenterchart.pro. 5 | 6 | ##################################################################### 7 | ## presenterchart Binary: 8 | ##################################################################### 9 | 10 | qt_internal_add_manual_test(presenterchart 11 | GUI 12 | SOURCES 13 | chartview.cpp chartview.h 14 | main.cpp 15 | LIBRARIES 16 | Qt::Charts 17 | Qt::Gui 18 | Qt::Widgets 19 | ) 20 | -------------------------------------------------------------------------------- /examples/charts/zoomlinechart/chart.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef CHART_H 5 | #define CHART_H 6 | 7 | #include 8 | 9 | QT_FORWARD_DECLARE_CLASS(QGestureEvent) 10 | 11 | //![1] 12 | class Chart : public QChart 13 | //![1] 14 | { 15 | public: 16 | explicit Chart(QGraphicsItem *parent = nullptr, Qt::WindowFlags wFlags = {}); 17 | 18 | protected: 19 | bool sceneEvent(QEvent *event); 20 | 21 | private: 22 | bool gestureEvent(QGestureEvent *event); 23 | }; 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /tests/manual/wavechart/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 The Qt Company Ltd. 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | # Generated from wavechart.pro. 5 | 6 | ##################################################################### 7 | ## wavechart Binary: 8 | ##################################################################### 9 | 10 | qt_internal_add_manual_test(wavechart 11 | GUI 12 | SOURCES 13 | main.cpp 14 | wavechart.cpp wavechart.h 15 | LIBRARIES 16 | Qt::Charts 17 | Qt::Gui 18 | Qt::OpenGL 19 | Qt::OpenGLWidgets 20 | ) 21 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/calloutwidget.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #include "calloutview.h" 5 | #include "calloutwidget.h" 6 | 7 | CalloutWidget::CalloutWidget(QWidget *parent) 8 | : ContentWidget(parent) 9 | { 10 | // To make mouse tracking work, we need to subclass the QGraphicsView instead of just having 11 | // it as member of this class 12 | m_view = new CalloutView(this); 13 | m_view->resize(size()); 14 | } 15 | 16 | void CalloutWidget::resizeEvent(QResizeEvent *) 17 | { 18 | m_view->resize(size()); 19 | } 20 | -------------------------------------------------------------------------------- /src/charts/doc/src/deprecation-phase.qdocinc: -------------------------------------------------------------------------------- 1 | \note The Qt Charts module has been deprecated since Qt 6.10. 2 | For new projects, use the \l{Qt Graphs} module instead. 3 | Qt Graphs uses each platform's native rendering backend (Metal on 4 | macOS, DirectX on Windows, OpenGL or Vulkan on Linux) to achieve 5 | hardware-accelerated rendering for both 2D and 3D graphs. Qt Graphs 6 | uses \l {Qt Quick Shapes QML Types} {Qt Quick Shapes} for 2D graph 7 | rendering, instead of the outdated Qt Graphics View Framework 8 | used by the Qt Charts module. 9 | To migrate from Qt Charts to Qt Graphs module, refer to 10 | \l{Qt Graphs Migration from Qt Charts}. 11 | -------------------------------------------------------------------------------- /examples/charts/qmlchartsgallery/qml/LineSeries.qml: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | import QtCharts 5 | 6 | //![1] 7 | ChartView { 8 | title: "Line Chart" 9 | anchors.fill: parent 10 | antialiasing: true 11 | 12 | LineSeries { 13 | name: "Line" 14 | XYPoint { x: 0; y: 0 } 15 | XYPoint { x: 1.1; y: 2.1 } 16 | XYPoint { x: 1.9; y: 3.3 } 17 | XYPoint { x: 2.1; y: 2.1 } 18 | XYPoint { x: 2.9; y: 4.9 } 19 | XYPoint { x: 3.4; y: 3.0 } 20 | XYPoint { x: 4.1; y: 3.3 } 21 | } 22 | } 23 | //![1] 24 | -------------------------------------------------------------------------------- /src/charts/animations/chartanimation.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | #include 5 | 6 | QT_BEGIN_NAMESPACE 7 | 8 | ChartAnimation::ChartAnimation(QObject *parent) : 9 | QVariantAnimation(parent), 10 | m_destructing(false) 11 | { 12 | } 13 | 14 | void ChartAnimation::stopAndDestroyLater() 15 | { 16 | m_destructing = true; 17 | stop(); 18 | deleteLater(); 19 | } 20 | 21 | void ChartAnimation::startChartAnimation() 22 | { 23 | if (!m_destructing) 24 | start(); 25 | } 26 | 27 | QT_END_NAMESPACE 28 | 29 | 30 | -------------------------------------------------------------------------------- /tests/manual/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 The Qt Company Ltd. 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | # Generated from manual.pro. 5 | 6 | add_subdirectory(presenterchart) 7 | add_subdirectory(polarcharttest) 8 | add_subdirectory(boxplottester) 9 | add_subdirectory(candlesticktester) 10 | add_subdirectory(barcharttester) 11 | if(QT_FEATURE_opengl) 12 | add_subdirectory(chartwidgettest) 13 | add_subdirectory(wavechart) 14 | add_subdirectory(chartviewer) 15 | add_subdirectory(openglseriestest) 16 | endif() 17 | if(TARGET Qt::Quick) 18 | add_subdirectory(qmlchartproperties) 19 | add_subdirectory(qmlchartaxis) 20 | endif() 21 | -------------------------------------------------------------------------------- /examples/charts/qmlchartsgallery/qml/SplineSeries.qml: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | import QtCharts 5 | 6 | //![1] 7 | ChartView { 8 | title: "Spline Chart" 9 | anchors.fill: parent 10 | antialiasing: true 11 | 12 | SplineSeries { 13 | name: "Spline" 14 | XYPoint { x: 0; y: 0.0 } 15 | XYPoint { x: 1.1; y: 3.2 } 16 | XYPoint { x: 1.9; y: 2.4 } 17 | XYPoint { x: 2.1; y: 2.1 } 18 | XYPoint { x: 2.9; y: 2.6 } 19 | XYPoint { x: 3.4; y: 2.3 } 20 | XYPoint { x: 4.1; y: 3.1 } 21 | } 22 | } 23 | //![1] 24 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/candlestickdatareader.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef CANDLESTICKDATAREADER_H 5 | #define CANDLESTICKDATAREADER_H 6 | 7 | #include 8 | 9 | QT_FORWARD_DECLARE_CLASS(QCandlestickSet) 10 | 11 | class CandlestickDataReader 12 | { 13 | public: 14 | explicit CandlestickDataReader(QIODevice *device); 15 | ~CandlestickDataReader(); 16 | 17 | void readFile(QIODevice *device); 18 | QCandlestickSet *readCandlestickSet(); 19 | bool atEnd() const; 20 | 21 | private: 22 | QTextStream m_textStream; 23 | }; 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /tests/manual/barcharttester/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 The Qt Company Ltd. 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | # Generated from barcharttester.pro. 5 | 6 | ##################################################################### 7 | ## barcharttester Binary: 8 | ##################################################################### 9 | 10 | qt_internal_add_manual_test(barcharttester 11 | GUI 12 | SOURCES 13 | chart-widget.cpp chart-widget.h 14 | main.cpp 15 | LIBRARIES 16 | Qt::Charts 17 | Qt::Gui 18 | Qt::Widgets 19 | ) 20 | 21 | #### Keys ignored in scope 1:.:.:barcharttester.pro:: 22 | # TEMPLATE = "app" 23 | -------------------------------------------------------------------------------- /tests/manual/presenterchart/main.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | #include "chartview.h" 5 | #include 6 | #include 7 | 8 | int main(int argc, char *argv[]) 9 | { 10 | QApplication a(argc, argv); 11 | QMainWindow window; 12 | QChart *chart = new QChart(); 13 | ChartView chartView(chart, &window); 14 | chartView.setRenderHint(QPainter::Antialiasing); 15 | chart->setAnimationOptions(QChart::SeriesAnimations); 16 | window.setCentralWidget(&chartView); 17 | window.resize(400, 300); 18 | window.show(); 19 | return a.exec(); 20 | } 21 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/donutbreakdownchart.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef DONUTBREAKDOWNCHART_H 5 | #define DONUTBREAKDOWNCHART_H 6 | 7 | #include 8 | 9 | QT_FORWARD_DECLARE_CLASS(QPieSeries) 10 | 11 | class DonutBreakdownChart : public QChart 12 | { 13 | public: 14 | DonutBreakdownChart(QGraphicsItem *parent = nullptr, Qt::WindowFlags wFlags = {}); 15 | void addBreakdownSeries(QPieSeries *series, QColor color); 16 | 17 | private: 18 | void recalculateAngles(); 19 | void updateLegendMarkers(); 20 | 21 | private: 22 | QPieSeries *m_mainSeries = nullptr; 23 | }; 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /src/charts/qchartglobal_p.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2018 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | #ifndef QCHARTGLOBAL_P_H 5 | #define QCHARTGLOBAL_P_H 6 | 7 | // 8 | // W A R N I N G 9 | // ------------- 10 | // 11 | // This file is not part of the Qt API. It exists purely as an 12 | // implementation detail. This header file may change from version to 13 | // version without notice, or even be removed. 14 | // 15 | // We mean it. 16 | // 17 | 18 | #include 19 | #include 20 | #include 21 | #include 22 | 23 | #endif // QCHARTGLOBAL_P_H 24 | -------------------------------------------------------------------------------- /tests/manual/chartviewer/view.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | #ifndef VIEW_H 5 | #define VIEW_H 6 | #include 7 | 8 | QT_BEGIN_NAMESPACE 9 | class QGraphicsScene; 10 | class QResizeEvent; 11 | QT_END_NAMESPACE 12 | 13 | class View: public QGraphicsView 14 | { 15 | public: 16 | View(QGraphicsScene *scene, QGraphicsWidget *form , QWidget *parent = 0); 17 | 18 | protected: 19 | void resizeEvent(QResizeEvent *event); 20 | void mouseMoveEvent(QMouseEvent *event); 21 | void mouseReleaseEvent(QMouseEvent *event); 22 | 23 | private: 24 | QGraphicsWidget *m_form; 25 | }; 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/boxplotdatareader.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef BOXPLOTDATAREADER_H 5 | #define BOXPLOTDATAREADER_H 6 | 7 | #include 8 | #include 9 | 10 | QT_FORWARD_DECLARE_CLASS(QBoxSet) 11 | 12 | class BoxPlotDataReader 13 | { 14 | public: 15 | explicit BoxPlotDataReader(QIODevice *device); 16 | 17 | QBoxSet *readBox(); 18 | void readFile(QIODevice *device); 19 | bool atEnd() const; 20 | 21 | protected: 22 | qreal findMedian(int begin, int end); 23 | 24 | private: 25 | QList m_sortedList; 26 | QTextStream m_textStream; 27 | }; 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /tests/manual/wavechart/wavechart.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | #ifndef WAVECHART_H 5 | #define WAVECHART_H 6 | 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | 13 | QT_USE_NAMESPACE 14 | 15 | class WaveChart: public QChartView 16 | { 17 | Q_OBJECT 18 | 19 | public: 20 | WaveChart(QChart* chart, QWidget* parent); 21 | 22 | private slots: 23 | void update(); 24 | 25 | private: 26 | QLineSeries* m_series; 27 | int m_wave; 28 | qreal m_step; 29 | QTimer m_timer; 30 | }; 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/nesteddonutswidget.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef NESTEDDONUTSWIDGET_H 5 | #define NESTEDDONUTSWIDGET_H 6 | 7 | #include "contentwidget.h" 8 | 9 | QT_FORWARD_DECLARE_CLASS(QTimer) 10 | QT_FORWARD_DECLARE_CLASS(QPieSeries) 11 | 12 | class NestedDonutsWidget : public ContentWidget 13 | { 14 | Q_OBJECT 15 | public: 16 | NestedDonutsWidget(QWidget *parent = nullptr); 17 | 18 | public slots: 19 | void updateRotation(); 20 | void explodeSlice(bool exploded); 21 | 22 | private: 23 | QList m_donuts; 24 | QTimer *m_updateTimer = nullptr; 25 | }; 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/scatterinteractionswidget.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef SCATTERINTERACTIONSWIDGET_H 5 | #define SCATTERINTERACTIONSWIDGET_H 6 | 7 | #include "contentwidget.h" 8 | 9 | QT_FORWARD_DECLARE_CLASS(QScatterSeries) 10 | 11 | class ScatterInteractionsWidget : public ContentWidget 12 | { 13 | Q_OBJECT 14 | public: 15 | explicit ScatterInteractionsWidget(QWidget *parent = nullptr); 16 | 17 | private slots: 18 | void handleClickedPoint(const QPointF &point); 19 | 20 | private: 21 | QScatterSeries *m_scatter = nullptr; 22 | QScatterSeries *m_scatter2 = nullptr; 23 | }; 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/selectedbarwidget.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef SELECTEDBARWIDGET_H 5 | #define SELECTEDBARWIDGET_H 6 | 7 | #include "contentwidget.h" 8 | 9 | #include 10 | 11 | QT_FORWARD_DECLARE_CLASS(QBarSet) 12 | 13 | class SelectedBarWidget : public ContentWidget 14 | { 15 | Q_OBJECT 16 | public: 17 | explicit SelectedBarWidget(QWidget *parent = nullptr); 18 | 19 | private: 20 | QBarSet *createChickenSet(); 21 | QBarSet *createPorkSet(); 22 | QBarSet *createTurkeySet(); 23 | QBarSet *createHamSet(); 24 | QStringList createYearCategories(); 25 | }; 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /src/charts/barchart/vertical/bar/qbarseries.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | #ifndef QBARSERIES_H 5 | #define QBARSERIES_H 6 | 7 | #include 8 | 9 | QT_BEGIN_NAMESPACE 10 | 11 | class QBarSeriesPrivate; 12 | 13 | class Q_CHARTS_EXPORT QBarSeries : public QAbstractBarSeries 14 | { 15 | Q_OBJECT 16 | public: 17 | explicit QBarSeries(QObject *parent = nullptr); 18 | ~QBarSeries(); 19 | QAbstractSeries::SeriesType type() const override; 20 | 21 | private: 22 | Q_DECLARE_PRIVATE(QBarSeries) 23 | Q_DISABLE_COPY(QBarSeries) 24 | }; 25 | 26 | QT_END_NAMESPACE 27 | 28 | #endif // QBARSERIES_H 29 | -------------------------------------------------------------------------------- /examples/charts/qmlchartsgallery/qml/BarSeriesPercent.qml: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | import QtQuick 5 | import QtCharts 6 | 7 | //![1] 8 | ChartView { 9 | title: "Percent Bar Chart" 10 | anchors.fill: parent 11 | legend.alignment: Qt.AlignBottom 12 | antialiasing: true 13 | 14 | PercentBarSeries { 15 | axisX: BarCategoryAxis { categories: ["2007", "2008", "2009", "2010", "2011", "2012" ] } 16 | BarSet { label: "Bob"; values: [2, 2, 3, 4, 5, 6] } 17 | BarSet { label: "Susan"; values: [5, 1, 2, 4, 1, 7] } 18 | BarSet { label: "James"; values: [3, 5, 8, 13, 5, 8] } 19 | } 20 | } 21 | //![1] 22 | -------------------------------------------------------------------------------- /examples/charts/qmlchartsgallery/qml/BarSeriesStacked.qml: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | import QtQuick 5 | import QtCharts 6 | 7 | //![1] 8 | ChartView { 9 | title: "Stacked Bar Chart" 10 | anchors.fill: parent 11 | legend.alignment: Qt.AlignBottom 12 | antialiasing: true 13 | 14 | StackedBarSeries { 15 | axisX: BarCategoryAxis { categories: ["2007", "2008", "2009", "2010", "2011", "2012" ] } 16 | BarSet { label: "Bob"; values: [2, 2, 3, 4, 5, 6] } 17 | BarSet { label: "Susan"; values: [5, 1, 2, 4, 1, 7] } 18 | BarSet { label: "James"; values: [3, 5, 8, 13, 5, 8] } 19 | } 20 | } 21 | //![1] 22 | -------------------------------------------------------------------------------- /src/chartsqml2/designer/default/PolarScatterSeries.qml: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | import QtQuick 2.0 5 | import QtCharts 2.0 6 | 7 | PolarChartView { 8 | width: 300 9 | height: 300 10 | 11 | ScatterSeries { 12 | name: "ScatterSeries" 13 | axisRadial: CategoryAxis { 14 | min: 0 15 | max: 20 16 | } 17 | axisAngular: ValueAxis { 18 | tickCount: 9 19 | } 20 | XYPoint { x: 0; y: 4.3 } 21 | XYPoint { x: 2; y: 4.7 } 22 | XYPoint { x: 4; y: 5.2 } 23 | XYPoint { x: 8; y: 12.9 } 24 | XYPoint { x: 9; y: 19.2 } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /examples/charts/qmlchartsgallery/qml/BarSeries.qml: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | import QtQuick 5 | import QtCharts 6 | 7 | //![1] 8 | ChartView { 9 | title: "Bar Chart" 10 | anchors.fill: parent 11 | legend.alignment: Qt.AlignBottom 12 | antialiasing: true 13 | 14 | BarSeries { 15 | id: mySeries 16 | axisX: BarCategoryAxis { categories: ["2007", "2008", "2009", "2010", "2011", "2012" ] } 17 | BarSet { label: "Bob"; values: [2, 2, 3, 4, 5, 6] } 18 | BarSet { label: "Susan"; values: [5, 1, 2, 4, 1, 7] } 19 | BarSet { label: "James"; values: [3, 5, 8, 13, 5, 8] } 20 | } 21 | } 22 | //![1] 23 | -------------------------------------------------------------------------------- /examples/charts/qmlchartsgallery/qml/BarSeriesHorizontal.qml: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | import QtQuick 5 | import QtCharts 6 | 7 | //![1] 8 | ChartView { 9 | title: "Horizontal Bar Chart" 10 | anchors.fill: parent 11 | legend.alignment: Qt.AlignBottom 12 | antialiasing: true 13 | 14 | HorizontalBarSeries { 15 | axisY: BarCategoryAxis { categories: ["2007", "2008", "2009", "2010", "2011", "2012" ] } 16 | BarSet { label: "Bob"; values: [2, 2, 3, 4, 5, 6] } 17 | BarSet { label: "Susan"; values: [5, 1, 2, 4, 1, 7] } 18 | BarSet { label: "James"; values: [3, 5, 8, 13, 5, 8] } 19 | } 20 | } 21 | //![1] 22 | -------------------------------------------------------------------------------- /src/chartsqml2/declarativechartglobal_p.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2018 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | // W A R N I N G 5 | // ------------- 6 | // 7 | // This file is not part of the Qt Chart API. It exists purely as an 8 | // implementation detail. This header file may change from version to 9 | // version without notice, or even be removed. 10 | // 11 | // We mean it. 12 | 13 | #ifndef DECLARATIVECHARTGLOBAL_H 14 | #define DECLARATIVECHARTGLOBAL_H 15 | 16 | #include 17 | #include 18 | #include 19 | 20 | void Q_CHARTSQML_EXPORT qml_register_types_QtCharts(); 21 | 22 | #endif // DECLARATIVECHARTGLOBAL_H 23 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/interactionsview.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef INTERACTIONSVIEW_H 5 | #define INTERACTIONSVIEW_H 6 | 7 | #include 8 | #include 9 | 10 | class InteractionsChart; 11 | 12 | class InteractionsView : public QChartView 13 | { 14 | public: 15 | InteractionsView(InteractionsChart *chart, QWidget *parent = nullptr); 16 | 17 | protected: 18 | void mousePressEvent(QMouseEvent *event); 19 | void mouseMoveEvent(QMouseEvent *event); 20 | void mouseReleaseEvent(QMouseEvent *event); 21 | 22 | private: 23 | InteractionsChart *m_chart = nullptr; 24 | QPoint m_mousePos; 25 | }; 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /tests/manual/presenterchart/chartview.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | #ifndef CHARTVIEW_H 5 | #define CHARTVIEW_H 6 | 7 | #include 8 | #include 9 | 10 | QT_USE_NAMESPACE 11 | 12 | //![1] 13 | class ChartView: public QChartView 14 | { 15 | Q_OBJECT 16 | public: 17 | ChartView(QChart *chart, QWidget *parent = 0); 18 | virtual ~ChartView(); 19 | 20 | public slots: 21 | void handleTimeout(); 22 | 23 | private: 24 | QTimer m_timer; 25 | QList m_series; 26 | QStringList m_titles; 27 | int m_index; 28 | QChart *m_chart; 29 | }; 30 | //![1] 31 | 32 | #endif /* CHARTVIEW_H */ 33 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/piedrilldownchart.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef PIEDRILLDOWNCHART_H 5 | #define PIEDRILLDOWNCHART_H 6 | 7 | #include 8 | 9 | QT_FORWARD_DECLARE_CLASS(QAbstractSeries); 10 | QT_FORWARD_DECLARE_CLASS(QPieSlice); 11 | 12 | class PieDrilldownChart : public QChart 13 | { 14 | Q_OBJECT 15 | public: 16 | explicit PieDrilldownChart(QGraphicsItem *parent = nullptr, Qt::WindowFlags wFlags = {}); 17 | void changeSeries(QAbstractSeries *series); 18 | 19 | public slots: 20 | void handleSliceClicked(QPieSlice *slice); 21 | 22 | private: 23 | QAbstractSeries *m_currentSeries = nullptr; 24 | }; 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/piedrilldownslice.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef PIEDRILLDOWNSLICE_H 5 | #define PIEDRILLDOWNSLICE_H 6 | 7 | #include 8 | 9 | QT_FORWARD_DECLARE_CLASS(QAbstractSeries); 10 | 11 | class PieDrilldownSlice : public QPieSlice 12 | { 13 | Q_OBJECT 14 | public: 15 | PieDrilldownSlice(qreal value, const QString &prefix, QAbstractSeries *drilldownSeries); 16 | QAbstractSeries *drilldownSeries() const; 17 | 18 | public slots: 19 | void updateLabel(); 20 | void showHighlight(bool show); 21 | 22 | private: 23 | QAbstractSeries *m_drilldownSeries = nullptr; 24 | QString m_prefix; 25 | }; 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /examples/charts/qmlchartsgallery/qml/BoxPlotSeries.qml: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | import QtQuick 5 | import QtCharts 6 | 7 | ChartView { 8 | title: "Box Plot Chart" 9 | legend.alignment: Qt.AlignBottom 10 | antialiasing: true 11 | 12 | BoxPlotSeries { 13 | id: plotSeries 14 | name: "Income" 15 | BoxSet { label: "Jan"; values: [3, 4, 5.1, 6.2, 8.5] } 16 | BoxSet { label: "Feb"; values: [5, 6, 7.5, 8.6, 11.8] } 17 | BoxSet { label: "Mar"; values: [3.2, 5, 5.7, 8, 9.2] } 18 | BoxSet { label: "Apr"; values: [3.8, 5, 6.4, 7, 8] } 19 | BoxSet { label: "May"; values: [4, 5, 5.2, 6, 7] } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /tests/manual/chartdesigner/penwidget.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | #ifndef PENWIDGET_H 5 | #define PENWIDGET_H 6 | 7 | #include 8 | #include 9 | 10 | class QComboBox; 11 | class QSpinBox; 12 | 13 | class PenWidget : public QWidget 14 | { 15 | public: 16 | explicit PenWidget(QWidget* parent = 0); 17 | ~PenWidget(); 18 | 19 | QPen pen() const { return m_pen; } 20 | private: 21 | void createContent(); 22 | void createLayout(); 23 | 24 | private: 25 | QPen m_pen; 26 | QComboBox *m_colorComboBox; 27 | QComboBox *m_lineStyleComboBox; 28 | QSpinBox *m_widthSpinBox; 29 | }; 30 | 31 | #endif /* PENWIDGET_H */ 32 | -------------------------------------------------------------------------------- /examples/charts/qmlchartsgallery/qml/BarSeriesPercentHorizontal.qml: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | import QtQuick 5 | import QtCharts 6 | 7 | //![1] 8 | ChartView { 9 | title: "Horizontal Percent Bar Chart" 10 | anchors.fill: parent 11 | legend.alignment: Qt.AlignBottom 12 | antialiasing: true 13 | 14 | HorizontalPercentBarSeries { 15 | axisY: BarCategoryAxis { categories: ["2007", "2008", "2009", "2010", "2011", "2012" ] } 16 | BarSet { label: "Bob"; values: [2, 2, 3, 4, 5, 6] } 17 | BarSet { label: "Susan"; values: [5, 1, 2, 4, 1, 7] } 18 | BarSet { label: "James"; values: [3, 5, 8, 13, 5, 8] } 19 | } 20 | } 21 | //![1] 22 | -------------------------------------------------------------------------------- /examples/charts/qmlchartsgallery/qml/BarSeriesStackedHorizontal.qml: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | import QtQuick 5 | import QtCharts 6 | 7 | //![1] 8 | ChartView { 9 | title: "Horizontal Stacked Bar Chart" 10 | anchors.fill: parent 11 | legend.alignment: Qt.AlignBottom 12 | antialiasing: true 13 | 14 | HorizontalStackedBarSeries { 15 | axisY: BarCategoryAxis { categories: ["2007", "2008", "2009", "2010", "2011", "2012" ] } 16 | BarSet { label: "Bob"; values: [2, 2, 3, 4, 5, 6] } 17 | BarSet { label: "Susan"; values: [5, 1, 2, 4, 1, 7] } 18 | BarSet { label: "James"; values: [3, 5, 8, 13, 5, 8] } 19 | } 20 | } 21 | //![1] 22 | -------------------------------------------------------------------------------- /src/chartsqml2/designer/default/PolarLineSeries.qml: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | import QtQuick 2.0 5 | import QtCharts 2.0 6 | 7 | 8 | PolarChartView { 9 | width: 300 10 | height: 300 11 | 12 | LineSeries { 13 | name: "LineSeries" 14 | axisRadial: CategoryAxis { 15 | min: 0 16 | max: 20 17 | } 18 | axisAngular: ValueAxis { 19 | tickCount: 9 20 | } 21 | XYPoint { x: 0; y: 4.3 } 22 | XYPoint { x: 2; y: 4.7 } 23 | XYPoint { x: 4; y: 5.2 } 24 | XYPoint { x: 6; y: 6.1 } 25 | XYPoint { x: 8; y: 12.9 } 26 | XYPoint { x: 9; y: 19.2 } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /examples/charts/audio/main.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #include "widget.h" 5 | 6 | #include 7 | #include 8 | #include 9 | #include 10 | 11 | int main(int argc, char *argv[]) 12 | { 13 | QApplication a(argc, argv); 14 | const QAudioDevice inputDevice = QMediaDevices::defaultAudioInput(); 15 | if (inputDevice.isNull()) { 16 | QMessageBox::warning(nullptr, "audio", 17 | "There is no audio input device available."); 18 | return -1; 19 | } 20 | 21 | Widget w(inputDevice); 22 | w.resize(800, 600); 23 | w.show(); 24 | 25 | return a.exec(); 26 | } 27 | -------------------------------------------------------------------------------- /examples/charts/zoomlinechart/chartview.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef CHARTVIEW_H 5 | #define CHARTVIEW_H 6 | 7 | #include 8 | #include 9 | 10 | //![1] 11 | class ChartView : public QChartView 12 | //![1] 13 | { 14 | public: 15 | ChartView(QChart *chart, QWidget *parent = nullptr); 16 | 17 | //![2] 18 | protected: 19 | bool viewportEvent(QEvent *event); 20 | void mousePressEvent(QMouseEvent *event); 21 | void mouseMoveEvent(QMouseEvent *event); 22 | void mouseReleaseEvent(QMouseEvent *event); 23 | void keyPressEvent(QKeyEvent *event); 24 | //![2] 25 | 26 | private: 27 | bool m_isTouching = false; 28 | }; 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /src/chartsqml2/designer/default/PolarSplineSeries.qml: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | import QtQuick 2.0 5 | import QtCharts 2.0 6 | 7 | 8 | PolarChartView { 9 | width: 300 10 | height: 300 11 | 12 | SplineSeries { 13 | name: "SplineSeries" 14 | axisRadial: CategoryAxis { 15 | min: 0 16 | max: 20 17 | } 18 | axisAngular: ValueAxis { 19 | tickCount: 9 20 | } 21 | XYPoint { x: 0; y: 4.3 } 22 | XYPoint { x: 2; y: 4.7 } 23 | XYPoint { x: 4; y: 5.2 } 24 | XYPoint { x: 6; y: 6.1 } 25 | XYPoint { x: 8; y: 12.9 } 26 | XYPoint { x: 9; y: 19.2 } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /tests/manual/candlesticktester/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 The Qt Company Ltd. 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | # Generated from candlesticktester.pro. 5 | 6 | ##################################################################### 7 | ## candlesticktester Binary: 8 | ##################################################################### 9 | 10 | qt_internal_add_manual_test(candlesticktester 11 | GUI 12 | SOURCES 13 | customtablemodel.cpp customtablemodel.h 14 | main.cpp 15 | mainwidget.cpp mainwidget.h 16 | NO_PCH_SOURCES 17 | customtablemodel.cpp # undef QT_NO_FOREACH 18 | mainwidget.cpp # undef QT_NO_FOREACH 19 | LIBRARIES 20 | Qt::Charts 21 | Qt::Gui 22 | Qt::Widgets 23 | ) 24 | -------------------------------------------------------------------------------- /dist/changes-5.8.0: -------------------------------------------------------------------------------- 1 | Qt Charts 5.8.0 2 | 3 | New features 4 | ------------ 5 | - [QTBUG-50544] Added new candlestick series type 6 | - Added horizontal model mapper for box plot series 7 | 8 | Fixed issues 9 | ------------ 10 | - Antialiasing is now supported for OpenGL accelerated series 11 | - Mouse events are now supported for OpenGL accelerated series 12 | - [QTBUG-56037] Ensure axis geometry is correct when axis is shown 13 | - Fix areaseries bordercolor setting to black 14 | - [QTBUG-56900] Fix domain initialization for area series 15 | 16 | Example changes 17 | --------------- 18 | - Qmlcustomizations example sometimes failed to run the animation 19 | - Fixed blinking after animation stopped in qmlcustomizations example 20 | - Fixed qmloscilloscope example when using software backend 21 | -------------------------------------------------------------------------------- /tests/manual/chartwidgettest/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 The Qt Company Ltd. 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | # Generated from chartwidgettest.pro. 5 | 6 | ##################################################################### 7 | ## chartwidgettest Binary: 8 | ##################################################################### 9 | 10 | qt_internal_add_manual_test(chartwidgettest 11 | GUI 12 | SOURCES 13 | dataseriedialog.cpp dataseriedialog.h 14 | main.cpp 15 | mainwidget.cpp mainwidget.h 16 | LIBRARIES 17 | Qt::Charts 18 | Qt::Gui 19 | Qt::OpenGL 20 | Qt::OpenGLWidgets 21 | Qt::Widgets 22 | ) 23 | 24 | #### Keys ignored in scope 1:.:.:chartwidgettest.pro:: 25 | # TEMPLATE = "app" 26 | -------------------------------------------------------------------------------- /dist/changes-5.13.0: -------------------------------------------------------------------------------- 1 | Qt 5.13 introduces many new features and improvements as well as bugfixes 2 | over the 5.12.x series. For more details, refer to the online documentation 3 | included in this distribution. The documentation is also available online: 4 | 5 | https://doc.qt.io/qt-5/index.html 6 | 7 | The Qt version 5.13 series is binary compatible with the 5.12.x series. 8 | Applications compiled for 5.12 will continue to run with 5.13. 9 | 10 | Some of the changes listed in this file include issue tracking numbers 11 | corresponding to tasks in the Qt Bug Tracker: 12 | 13 | https://bugreports.qt.io/ 14 | 15 | Each of these identifiers can be entered in the bug tracker to obtain more 16 | information about a particular change. 17 | 18 | - This release contains only minor code improvements. 19 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/donutbreakdownmainslice.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef DONUTBREAKDOWNMAINSLICE_H 5 | #define DONUTBREAKDOWNMAINSLICE_H 6 | 7 | #include 8 | 9 | QT_FORWARD_DECLARE_CLASS(QPieSeries) 10 | 11 | class DonutBreakdownMainSlice : public QPieSlice 12 | { 13 | Q_OBJECT 14 | public: 15 | DonutBreakdownMainSlice(QPieSeries *breakdownSeries, QObject *parent = nullptr); 16 | 17 | QPieSeries *breakdownSeries() const; 18 | 19 | void setName(const QString &name); 20 | QString name() const; 21 | 22 | public slots: 23 | void updateLabel(); 24 | 25 | private: 26 | QPieSeries *m_breakdownSeries = nullptr; 27 | QString m_name; 28 | }; 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/pcccustomslice.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #include "pcccustomslice.h" 5 | 6 | PccCustomSlice::PccCustomSlice(const QString &label, qreal value) 7 | : QPieSlice(label, value) 8 | { 9 | connect(this, &PccCustomSlice::hovered, this, &PccCustomSlice::showHighlight); 10 | } 11 | 12 | QBrush PccCustomSlice::originalBrush() 13 | { 14 | return m_originalBrush; 15 | } 16 | 17 | void PccCustomSlice::showHighlight(bool show) 18 | { 19 | if (show) { 20 | QBrush brush = this->brush(); 21 | m_originalBrush = brush; 22 | brush.setColor(brush.color().lighter()); 23 | setBrush(brush); 24 | } else { 25 | setBrush(m_originalBrush); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /examples/charts/qmloscilloscope/datasource.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef DATASOURCE_H 5 | #define DATASOURCE_H 6 | 7 | #include 8 | #include 9 | #include 10 | 11 | QT_FORWARD_DECLARE_CLASS(QAbstractSeries) 12 | QT_FORWARD_DECLARE_CLASS(QQuickView) 13 | 14 | class DataSource : public QObject 15 | { 16 | Q_OBJECT 17 | public: 18 | explicit DataSource(QQuickView *appViewer, QObject *parent = nullptr); 19 | 20 | public slots: 21 | void generateData(int type, int rowCount, int colCount); 22 | void update(QAbstractSeries *series); 23 | 24 | private: 25 | QQuickView *m_appViewer = nullptr; 26 | QList> m_data; 27 | int m_index = -1; 28 | }; 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /tests/manual/polarcharttest/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 The Qt Company Ltd. 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | # Generated from polarcharttest.pro. 5 | 6 | ##################################################################### 7 | ## polarcharttest Binary: 8 | ##################################################################### 9 | 10 | qt_internal_add_manual_test(polarcharttest 11 | GUI 12 | SOURCES 13 | chartview.cpp chartview.h 14 | main.cpp 15 | mainwindow.cpp mainwindow.h mainwindow.ui 16 | INCLUDE_DIRECTORIES 17 | . 18 | LIBRARIES 19 | Qt::Charts 20 | Qt::Gui 21 | Qt::Widgets 22 | ENABLE_AUTOGEN_TOOLS 23 | uic 24 | ) 25 | 26 | #### Keys ignored in scope 1:.:.:polarcharttest.pro:: 27 | # TEMPLATE = "app" 28 | -------------------------------------------------------------------------------- /dist/changes-5.14.1: -------------------------------------------------------------------------------- 1 | Qt 5.14.1 is a bug-fix release. It maintains both forward and backward 2 | compatibility (source and binary) with Qt 5.14.0. 3 | 4 | For more details, refer to the online documentation included in this 5 | distribution. The documentation is also available online: 6 | 7 | https://doc.qt.io/qt-5/index.html 8 | 9 | The Qt version 5.14 series is binary compatible with the 5.13.x series. 10 | Applications compiled for 5.13 will continue to run with 5.14. 11 | 12 | Some of the changes listed in this file include issue tracking numbers 13 | corresponding to tasks in the Qt Bug Tracker: 14 | 15 | https://bugreports.qt.io/ 16 | 17 | Each of these identifiers can be entered in the bug tracker to obtain more 18 | information about a particular change. 19 | 20 | - This release contains only minor code improvements. 21 | -------------------------------------------------------------------------------- /src/chartsqml2/designer/default/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 The Qt Company Ltd. 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | qt_path_join(destination ${QT_INSTALL_DIR} "${INSTALL_QMLDIR}/QtCharts/designer/default") 5 | qt_copy_or_install( 6 | FILES 7 | AreaSeries.qml 8 | BarSeries.qml 9 | BoxPlotSeries.qml 10 | HorizontalBarSeries.qml 11 | HorizontalPercentBarSeries.qml 12 | HorizontalStackedBarSeries.qml 13 | LineSeries.qml 14 | PercentBarSeries.qml 15 | PieSeries.qml 16 | ScatterSeries.qml 17 | SplineSeries.qml 18 | StackedBarSeries.qml 19 | PolarAreaSeries.qml 20 | PolarLineSeries.qml 21 | PolarScatterSeries.qml 22 | PolarSplineSeries.qml 23 | DESTINATION "${destination}" 24 | ) 25 | -------------------------------------------------------------------------------- /src/charts/barchart/horizontal/bar/qhorizontalbarseries.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | #ifndef QHORIZONTALBARSERIES_H 5 | #define QHORIZONTALBARSERIES_H 6 | 7 | #include 8 | 9 | QT_BEGIN_NAMESPACE 10 | 11 | class QHorizontalBarSeriesPrivate; 12 | 13 | class Q_CHARTS_EXPORT QHorizontalBarSeries : public QAbstractBarSeries 14 | { 15 | Q_OBJECT 16 | public: 17 | explicit QHorizontalBarSeries(QObject *parent = nullptr); 18 | ~QHorizontalBarSeries(); 19 | QAbstractSeries::SeriesType type() const override; 20 | 21 | private: 22 | Q_DECLARE_PRIVATE(QHorizontalBarSeries) 23 | Q_DISABLE_COPY(QHorizontalBarSeries) 24 | }; 25 | 26 | QT_END_NAMESPACE 27 | 28 | #endif // QHORIZONTALBARSERIES_H 29 | -------------------------------------------------------------------------------- /tests/auto/qchart/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 The Qt Company Ltd. 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | # Generated from qchart.pro. 5 | 6 | ##################################################################### 7 | ## qchart Test: 8 | ##################################################################### 9 | 10 | if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) 11 | cmake_minimum_required(VERSION 3.16) 12 | project(tst_qchart LANGUAGES CXX) 13 | find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST) 14 | endif() 15 | 16 | qt_internal_add_test(tst_qchart 17 | SOURCES 18 | ../inc/tst_definitions.h 19 | tst_qchart.cpp 20 | INCLUDE_DIRECTORIES 21 | ../inc 22 | LIBRARIES 23 | Qt::Charts 24 | Qt::Gui 25 | Qt::Widgets 26 | ) 27 | -------------------------------------------------------------------------------- /src/charts/barchart/vertical/percent/qpercentbarseries.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | #ifndef QPERCENTBARSERIES_H 5 | #define QPERCENTBARSERIES_H 6 | 7 | #include 8 | #include 9 | 10 | QT_BEGIN_NAMESPACE 11 | 12 | class QPercentBarSeriesPrivate; 13 | 14 | class Q_CHARTS_EXPORT QPercentBarSeries : public QAbstractBarSeries 15 | { 16 | Q_OBJECT 17 | public: 18 | explicit QPercentBarSeries(QObject *parent = nullptr); 19 | ~QPercentBarSeries(); 20 | QAbstractSeries::SeriesType type() const override; 21 | 22 | private: 23 | Q_DECLARE_PRIVATE(QPercentBarSeries) 24 | Q_DISABLE_COPY(QPercentBarSeries) 25 | }; 26 | 27 | QT_END_NAMESPACE 28 | 29 | #endif // QPERCENTBARSERIES_H 30 | -------------------------------------------------------------------------------- /src/charts/barchart/vertical/stacked/qstackedbarseries.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | #ifndef QSTACKEDBARSERIES_H 5 | #define QSTACKEDBARSERIES_H 6 | 7 | #include 8 | #include 9 | 10 | QT_BEGIN_NAMESPACE 11 | 12 | class QStackedBarSeriesPrivate; 13 | 14 | class Q_CHARTS_EXPORT QStackedBarSeries : public QAbstractBarSeries 15 | { 16 | Q_OBJECT 17 | public: 18 | explicit QStackedBarSeries(QObject *parent = nullptr); 19 | ~QStackedBarSeries(); 20 | QAbstractSeries::SeriesType type() const override; 21 | 22 | private: 23 | Q_DECLARE_PRIVATE(QStackedBarSeries) 24 | Q_DISABLE_COPY(QStackedBarSeries) 25 | }; 26 | 27 | QT_END_NAMESPACE 28 | 29 | #endif // QSTACKEDBARSERIES_H 30 | -------------------------------------------------------------------------------- /tests/auto/qbarset/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 The Qt Company Ltd. 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | # Generated from qbarset.pro. 5 | 6 | ##################################################################### 7 | ## qbarset Test: 8 | ##################################################################### 9 | 10 | if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) 11 | cmake_minimum_required(VERSION 3.16) 12 | project(tst_qbarset LANGUAGES CXX) 13 | find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST) 14 | endif() 15 | 16 | qt_internal_add_test(tst_qbarset 17 | SOURCES 18 | ../inc/tst_definitions.h 19 | tst_qbarset.cpp 20 | INCLUDE_DIRECTORIES 21 | ../inc 22 | LIBRARIES 23 | Qt::Charts 24 | Qt::Gui 25 | Qt::Widgets 26 | ) 27 | -------------------------------------------------------------------------------- /tests/auto/qlegend/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 The Qt Company Ltd. 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | # Generated from qlegend.pro. 5 | 6 | ##################################################################### 7 | ## qlegend Test: 8 | ##################################################################### 9 | 10 | if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) 11 | cmake_minimum_required(VERSION 3.16) 12 | project(tst_qlegend LANGUAGES CXX) 13 | find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST) 14 | endif() 15 | 16 | qt_internal_add_test(tst_qlegend 17 | SOURCES 18 | ../inc/tst_definitions.h 19 | tst_qlegend.cpp 20 | INCLUDE_DIRECTORIES 21 | ../inc 22 | LIBRARIES 23 | Qt::Charts 24 | Qt::Gui 25 | Qt::Widgets 26 | ) 27 | -------------------------------------------------------------------------------- /dist/changes-5.11.3: -------------------------------------------------------------------------------- 1 | Qt 5.11.3 is a bug-fix release. It maintains both forward and backward 2 | compatibility (source and binary) with Qt 5.11.0 through 5.11.2. 3 | 4 | For more details, refer to the online documentation included in this 5 | distribution. The documentation is also available online: 6 | 7 | http://doc.qt.io/qt-5/index.html 8 | 9 | The Qt version 5.11 series is binary compatible with the 5.10.x series. 10 | Applications compiled for 5.10 will continue to run with 5.11. 11 | 12 | Some of the changes listed in this file include issue tracking numbers 13 | corresponding to tasks in the Qt Bug Tracker: 14 | 15 | https://bugreports.qt.io/ 16 | 17 | Each of these identifiers can be entered in the bug tracker to obtain more 18 | information about a particular change. 19 | 20 | - This release contains only minor code improvements. 21 | -------------------------------------------------------------------------------- /dist/changes-5.12.2: -------------------------------------------------------------------------------- 1 | Qt 5.12.2 is a bug-fix release. It maintains both forward and backward 2 | compatibility (source and binary) with Qt 5.12.0 through 5.12.1. 3 | 4 | For more details, refer to the online documentation included in this 5 | distribution. The documentation is also available online: 6 | 7 | https://doc.qt.io/qt-5/index.html 8 | 9 | The Qt version 5.12 series is binary compatible with the 5.11.x series. 10 | Applications compiled for 5.11 will continue to run with 5.12. 11 | 12 | Some of the changes listed in this file include issue tracking numbers 13 | corresponding to tasks in the Qt Bug Tracker: 14 | 15 | https://bugreports.qt.io/ 16 | 17 | Each of these identifiers can be entered in the bug tracker to obtain more 18 | information about a particular change. 19 | 20 | - This release contains only minor code improvements. 21 | -------------------------------------------------------------------------------- /dist/changes-5.14.2: -------------------------------------------------------------------------------- 1 | Qt 5.14.2 is a bug-fix release. It maintains both forward and backward 2 | compatibility (source and binary) with Qt 5.14.0 through 5.14.1. 3 | 4 | For more details, refer to the online documentation included in this 5 | distribution. The documentation is also available online: 6 | 7 | https://doc.qt.io/qt-5/index.html 8 | 9 | The Qt version 5.14 series is binary compatible with the 5.13.x series. 10 | Applications compiled for 5.13 will continue to run with 5.14. 11 | 12 | Some of the changes listed in this file include issue tracking numbers 13 | corresponding to tasks in the Qt Bug Tracker: 14 | 15 | https://bugreports.qt.io/ 16 | 17 | Each of these identifiers can be entered in the bug tracker to obtain more 18 | information about a particular change. 19 | 20 | - This release contains only minor code improvements. 21 | -------------------------------------------------------------------------------- /tests/manual/boxplottester/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 The Qt Company Ltd. 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | # Generated from boxplottester.pro. 5 | 6 | ##################################################################### 7 | ## boxplottester Binary: 8 | ##################################################################### 9 | 10 | qt_internal_add_manual_test(boxplottester 11 | GUI 12 | SOURCES 13 | customtablemodel.cpp customtablemodel.h 14 | main.cpp 15 | mainwidget.cpp mainwidget.h 16 | pentool.cpp pentool.h 17 | NO_PCH_SOURCES 18 | customtablemodel.cpp # undef QT_NO_FOREACH 19 | LIBRARIES 20 | Qt::Charts 21 | Qt::Gui 22 | Qt::Widgets 23 | ) 24 | 25 | #### Keys ignored in scope 1:.:.:boxplottester.pro:: 26 | # TEMPLATE = "app" 27 | -------------------------------------------------------------------------------- /tests/auto/qpieslice/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 The Qt Company Ltd. 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | # Generated from qpieslice.pro. 5 | 6 | ##################################################################### 7 | ## qpieslice Test: 8 | ##################################################################### 9 | 10 | if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) 11 | cmake_minimum_required(VERSION 3.16) 12 | project(tst_qpieslice LANGUAGES CXX) 13 | find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST) 14 | endif() 15 | 16 | qt_internal_add_test(tst_qpieslice 17 | SOURCES 18 | ../inc/tst_definitions.h 19 | tst_qpieslice.cpp 20 | INCLUDE_DIRECTORIES 21 | ../inc 22 | LIBRARIES 23 | Qt::Charts 24 | Qt::Gui 25 | Qt::Widgets 26 | ) 27 | -------------------------------------------------------------------------------- /examples/charts/audio/xyseriesiodevice.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef XYSERIESIODEVICE_H 5 | #define XYSERIESIODEVICE_H 6 | 7 | #include 8 | #include 9 | #include 10 | 11 | QT_FORWARD_DECLARE_CLASS(QXYSeries) 12 | 13 | class XYSeriesIODevice : public QIODevice 14 | { 15 | Q_OBJECT 16 | public: 17 | explicit XYSeriesIODevice(QXYSeries *series, QObject *parent = nullptr); 18 | 19 | static const int sampleCount = 2000; 20 | 21 | protected: 22 | qint64 readData(char *data, qint64 maxSize) override; 23 | qint64 writeData(const char *data, qint64 maxSize) override; 24 | 25 | private: 26 | QXYSeries *m_series = nullptr; 27 | QList m_buffer; 28 | }; 29 | 30 | #endif // XYSERIESIODEVICE_H 31 | -------------------------------------------------------------------------------- /tests/auto/qbarseries/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 The Qt Company Ltd. 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | # Generated from qbarseries.pro. 5 | 6 | ##################################################################### 7 | ## qbarseries Test: 8 | ##################################################################### 9 | 10 | if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) 11 | cmake_minimum_required(VERSION 3.16) 12 | project(tst_qbarseries LANGUAGES CXX) 13 | find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST) 14 | endif() 15 | 16 | qt_internal_add_test(tst_qbarseries 17 | SOURCES 18 | ../inc/tst_definitions.h 19 | tst_qbarseries.cpp 20 | INCLUDE_DIRECTORIES 21 | ../inc 22 | LIBRARIES 23 | Qt::Charts 24 | Qt::Gui 25 | Qt::Widgets 26 | ) 27 | -------------------------------------------------------------------------------- /tests/auto/qchartview/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 The Qt Company Ltd. 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | # Generated from qchartview.pro. 5 | 6 | ##################################################################### 7 | ## qchartview Test: 8 | ##################################################################### 9 | 10 | if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) 11 | cmake_minimum_required(VERSION 3.16) 12 | project(tst_qchartview LANGUAGES CXX) 13 | find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST) 14 | endif() 15 | 16 | qt_internal_add_test(tst_qchartview 17 | SOURCES 18 | ../inc/tst_definitions.h 19 | tst_qchartview.cpp 20 | INCLUDE_DIRECTORIES 21 | ../inc 22 | LIBRARIES 23 | Qt::Charts 24 | Qt::Gui 25 | Qt::Widgets 26 | ) 27 | -------------------------------------------------------------------------------- /tests/auto/qpieseries/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 The Qt Company Ltd. 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | # Generated from qpieseries.pro. 5 | 6 | ##################################################################### 7 | ## qpieseries Test: 8 | ##################################################################### 9 | 10 | if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) 11 | cmake_minimum_required(VERSION 3.16) 12 | project(tst_qpieseries LANGUAGES CXX) 13 | find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST) 14 | endif() 15 | 16 | qt_internal_add_test(tst_qpieseries 17 | SOURCES 18 | ../inc/tst_definitions.h 19 | tst_qpieseries.cpp 20 | INCLUDE_DIRECTORIES 21 | ../inc 22 | LIBRARIES 23 | Qt::Charts 24 | Qt::Gui 25 | Qt::Widgets 26 | ) 27 | -------------------------------------------------------------------------------- /tests/auto/qareaseries/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 The Qt Company Ltd. 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | # Generated from qareaseries.pro. 5 | 6 | ##################################################################### 7 | ## qareaseries Test: 8 | ##################################################################### 9 | 10 | if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) 11 | cmake_minimum_required(VERSION 3.16) 12 | project(tst_qareaseries LANGUAGES CXX) 13 | find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST) 14 | endif() 15 | 16 | qt_internal_add_test(tst_qareaseries 17 | SOURCES 18 | ../inc/tst_definitions.h 19 | tst_qareaseries.cpp 20 | INCLUDE_DIRECTORIES 21 | ../inc 22 | LIBRARIES 23 | Qt::Charts 24 | Qt::Gui 25 | Qt::Widgets 26 | ) 27 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/doc/src/examples-callout.qdoc: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only 3 | 4 | /*! 5 | \page qtcharts-callout-example.html 6 | \title Drawing a Callout on Top of a Chart 7 | \brief Shows how to draw an additional element (a callout) on top of a chart. 8 | \include gallery.qdocinc 9 | \image examples_callout.png {Screenshot that shows a random point of two graphs being called out} 10 | 11 | The QChart class provides two methods that map between the scene coordinates and the series domain 12 | (defined by the axes ranges). 13 | 14 | QPointF QChart::mapToPosition(const QPointF &value, QAbstractSeries *series) 15 | 16 | QPointF QChart::mapToValue(const QPointF &position, QAbstractSeries *series) 17 | 18 | */ 19 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/piedrilldownchart.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #include "piedrilldownchart.h" 5 | #include "piedrilldownslice.h" 6 | 7 | PieDrilldownChart::PieDrilldownChart(QGraphicsItem *parent, Qt::WindowFlags wFlags) 8 | : QChart(QChart::ChartTypeCartesian, parent, wFlags) 9 | { 10 | } 11 | 12 | void PieDrilldownChart::changeSeries(QAbstractSeries *series) 13 | { 14 | if (m_currentSeries) 15 | removeSeries(m_currentSeries); 16 | m_currentSeries = series; 17 | addSeries(series); 18 | setTitle(series->name()); 19 | } 20 | 21 | void PieDrilldownChart::handleSliceClicked(QPieSlice *slice) 22 | { 23 | auto *drilldownSlice = static_cast(slice); 24 | changeSeries(drilldownSlice->drilldownSeries()); 25 | } 26 | -------------------------------------------------------------------------------- /tests/auto/qml/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 The Qt Company Ltd. 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | # Generated from qml.pro. 5 | 6 | ##################################################################### 7 | ## qml Test: 8 | ##################################################################### 9 | 10 | if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) 11 | cmake_minimum_required(VERSION 3.16) 12 | project(tst_charts_qml LANGUAGES CXX) 13 | find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST) 14 | endif() 15 | 16 | qt_internal_add_test(tst_charts_qml 17 | SOURCES 18 | ../inc/tst_definitions.h 19 | tst_qml.cpp 20 | INCLUDE_DIRECTORIES 21 | ../inc 22 | LIBRARIES 23 | Qt::Charts 24 | Qt::Gui 25 | Qt::Qml 26 | Qt::Quick 27 | Qt::Widgets 28 | ) 29 | -------------------------------------------------------------------------------- /src/charts/chartitem.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | 9 | QT_BEGIN_NAMESPACE 10 | 11 | ChartItem::ChartItem(QAbstractSeriesPrivate *series,QGraphicsItem* item): 12 | ChartElement(item), 13 | m_validData(true), 14 | m_series(series) 15 | { 16 | 17 | } 18 | 19 | AbstractDomain* ChartItem::domain() const 20 | { 21 | return m_series->domain(); 22 | } 23 | 24 | void ChartItem::cleanup() 25 | { 26 | disconnect(); 27 | } 28 | 29 | void ChartItem::handleDomainUpdated() 30 | { 31 | qWarning() << __FUNCTION__<< "Slot not implemented"; 32 | } 33 | 34 | QT_END_NAMESPACE 35 | 36 | #include "moc_chartitem_p.cpp" 37 | -------------------------------------------------------------------------------- /tests/auto/qxymodelmapper/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 The Qt Company Ltd. 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | # Generated from qxymodelmapper.pro. 5 | 6 | ##################################################################### 7 | ## qxymodelmapper Test: 8 | ##################################################################### 9 | 10 | if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) 11 | cmake_minimum_required(VERSION 3.16) 12 | project(tst_qxymodelmapper LANGUAGES CXX) 13 | find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST) 14 | endif() 15 | 16 | qt_internal_add_test(tst_qxymodelmapper 17 | SOURCES 18 | ../inc/tst_definitions.h 19 | tst_qxymodelmapper.cpp 20 | INCLUDE_DIRECTORIES 21 | ../inc 22 | LIBRARIES 23 | Qt::Charts 24 | Qt::Gui 25 | Qt::Widgets 26 | ) 27 | -------------------------------------------------------------------------------- /tests/auto/qcandlestickset/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 The Qt Company Ltd. 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | # Generated from qcandlestickset.pro. 5 | 6 | ##################################################################### 7 | ## qcandlestickset Test: 8 | ##################################################################### 9 | 10 | if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) 11 | cmake_minimum_required(VERSION 3.16) 12 | project(tst_qcandlestickset LANGUAGES CXX) 13 | find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST) 14 | endif() 15 | 16 | qt_internal_add_test(tst_qcandlestickset 17 | SOURCES 18 | ../inc/tst_definitions.h 19 | tst_qcandlestickset.cpp 20 | INCLUDE_DIRECTORIES 21 | ../inc 22 | LIBRARIES 23 | Qt::Charts 24 | Qt::Gui 25 | Qt::Widgets 26 | ) 27 | -------------------------------------------------------------------------------- /tests/auto/qpiemodelmapper/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 The Qt Company Ltd. 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | # Generated from qpiemodelmapper.pro. 5 | 6 | ##################################################################### 7 | ## qpiemodelmapper Test: 8 | ##################################################################### 9 | 10 | if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) 11 | cmake_minimum_required(VERSION 3.16) 12 | project(tst_qpiemodelmapper LANGUAGES CXX) 13 | find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST) 14 | endif() 15 | 16 | qt_internal_add_test(tst_qpiemodelmapper 17 | SOURCES 18 | ../inc/tst_definitions.h 19 | tst_qpiemodelmapper.cpp 20 | INCLUDE_DIRECTORIES 21 | ../inc 22 | LIBRARIES 23 | Qt::Charts 24 | Qt::Gui 25 | Qt::Widgets 26 | ) 27 | -------------------------------------------------------------------------------- /tests/manual/wavechart/main.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | #include "wavechart.h" 5 | #include 6 | #include 7 | #include 8 | 9 | int main(int argc, char *argv[]) 10 | { 11 | QApplication a(argc, argv); 12 | 13 | QMainWindow window; 14 | QChart *chart = new QChart(); 15 | WaveChart *waveChart = new WaveChart(chart,&window); 16 | 17 | waveChart->setViewport(new QOpenGLWidget()); 18 | waveChart->setRenderHint(QPainter::Antialiasing); 19 | chart->setAnimationOptions(QChart::AllAnimations); 20 | chart->setTitle("This is wave generator."); 21 | 22 | window.setCentralWidget(waveChart); 23 | window.resize(400, 300); 24 | window.show(); 25 | 26 | return a.exec(); 27 | } 28 | -------------------------------------------------------------------------------- /tests/auto/domain/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 The Qt Company Ltd. 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | # Generated from domain.pro. 5 | 6 | ##################################################################### 7 | ## domain Test: 8 | ##################################################################### 9 | 10 | if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) 11 | cmake_minimum_required(VERSION 3.16) 12 | project(tst_domain LANGUAGES CXX) 13 | find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST) 14 | endif() 15 | 16 | qt_internal_add_test(tst_domain 17 | SOURCES 18 | ../inc/tst_definitions.h 19 | tst_domain.cpp 20 | INCLUDE_DIRECTORIES 21 | ../inc 22 | LIBRARIES 23 | Qt::Charts 24 | Qt::ChartsPrivate 25 | Qt::CorePrivate 26 | Qt::Gui 27 | Qt::Widgets 28 | ) 29 | -------------------------------------------------------------------------------- /coin/module_config.yaml: -------------------------------------------------------------------------------- 1 | version: 2 2 | accept_configuration: 3 | condition: property 4 | property: features 5 | not_contains_value: Disable 6 | 7 | instructions: 8 | Build: 9 | - type: EnvironmentVariable 10 | variableName: VERIFY_SOURCE_SBOM 11 | variableValue: "ON" 12 | - !include "{{qt/qtbase}}/coin_module_build_template_v2.yaml" 13 | 14 | Test: 15 | - type: Group 16 | instructions: 17 | - !include "{{qt/qtbase}}/coin_module_test_template_v3.yaml" 18 | - !include "{{qt/qtbase}}/coin_module_test_docs.yaml" 19 | disable_if: 20 | condition: or 21 | conditions: 22 | - condition: property 23 | property: configureArgs 24 | contains_value: "-DFEATURE_widgets=OFF" 25 | - condition: property 26 | property: configureArgs 27 | contains_value: "-no-widgets" 28 | 29 | -------------------------------------------------------------------------------- /tests/auto/qpercentbarseries/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 The Qt Company Ltd. 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | # Generated from qpercentbarseries.pro. 5 | 6 | ##################################################################### 7 | ## qpercentbarseries Test: 8 | ##################################################################### 9 | 10 | if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) 11 | cmake_minimum_required(VERSION 3.16) 12 | project(tst_qpercentbarseries LANGUAGES CXX) 13 | find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST) 14 | endif() 15 | 16 | qt_internal_add_test(tst_qpercentbarseries 17 | SOURCES 18 | ../inc/tst_definitions.h 19 | tst_qpercentbarseries.cpp 20 | INCLUDE_DIRECTORIES 21 | ../inc 22 | LIBRARIES 23 | Qt::Charts 24 | Qt::Gui 25 | Qt::Widgets 26 | ) 27 | -------------------------------------------------------------------------------- /tests/auto/qstackedbarseries/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 The Qt Company Ltd. 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | # Generated from qstackedbarseries.pro. 5 | 6 | ##################################################################### 7 | ## qstackedbarseries Test: 8 | ##################################################################### 9 | 10 | if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) 11 | cmake_minimum_required(VERSION 3.16) 12 | project(tst_qstackedbarseries LANGUAGES CXX) 13 | find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST) 14 | endif() 15 | 16 | qt_internal_add_test(tst_qstackedbarseries 17 | SOURCES 18 | ../inc/tst_definitions.h 19 | tst_qstackedbarseries.cpp 20 | INCLUDE_DIRECTORIES 21 | ../inc 22 | LIBRARIES 23 | Qt::Charts 24 | Qt::Gui 25 | Qt::Widgets 26 | ) 27 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/dynamicsplinewidget.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef DYNAMICSPLINEWIDGET_H 5 | #define DYNAMICSPLINEWIDGET_H 6 | 7 | #include "contentwidget.h" 8 | 9 | #include 10 | 11 | QT_FORWARD_DECLARE_CLASS(QSplineSeries) 12 | QT_FORWARD_DECLARE_CLASS(QValueAxis) 13 | 14 | class DynamicSplineWidget : public ContentWidget 15 | { 16 | Q_OBJECT 17 | public: 18 | explicit DynamicSplineWidget(QWidget *parent = nullptr); 19 | 20 | public slots: 21 | void handleTimeout(); 22 | 23 | private: 24 | QSplineSeries *m_series = nullptr; 25 | QValueAxis *m_axisX = nullptr; 26 | QValueAxis *m_axisY = nullptr; 27 | QTimer m_timer; 28 | QStringList m_titles; 29 | qreal m_step = 0.; 30 | qreal m_x = 5; 31 | qreal m_y = 1; 32 | }; 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /src/charts/barchart/horizontal/percent/qhorizontalpercentbarseries.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | #ifndef QHORIZONTALPERCENTBARSERIES_H 5 | #define QHORIZONTALPERCENTBARSERIES_H 6 | 7 | #include 8 | 9 | QT_BEGIN_NAMESPACE 10 | 11 | class QHorizontalPercentBarSeriesPrivate; 12 | 13 | class Q_CHARTS_EXPORT QHorizontalPercentBarSeries : public QAbstractBarSeries 14 | { 15 | Q_OBJECT 16 | public: 17 | explicit QHorizontalPercentBarSeries(QObject *parent = nullptr); 18 | ~QHorizontalPercentBarSeries(); 19 | QAbstractSeries::SeriesType type() const override; 20 | 21 | private: 22 | Q_DECLARE_PRIVATE(QHorizontalPercentBarSeries) 23 | Q_DISABLE_COPY(QHorizontalPercentBarSeries) 24 | }; 25 | 26 | QT_END_NAMESPACE 27 | 28 | #endif // QHORIZONTALPERCENTBARSERIES_H 29 | -------------------------------------------------------------------------------- /src/charts/barchart/horizontal/stacked/qhorizontalstackedbarseries.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | #ifndef QHORIZONTALSTACKEDBARSERIES_H 5 | #define QHORIZONTALSTACKEDBARSERIES_H 6 | 7 | #include 8 | 9 | QT_BEGIN_NAMESPACE 10 | 11 | class QHorizontalStackedBarSeriesPrivate; 12 | 13 | class Q_CHARTS_EXPORT QHorizontalStackedBarSeries : public QAbstractBarSeries 14 | { 15 | Q_OBJECT 16 | public: 17 | explicit QHorizontalStackedBarSeries(QObject *parent = nullptr); 18 | ~QHorizontalStackedBarSeries(); 19 | QAbstractSeries::SeriesType type() const override; 20 | 21 | private: 22 | Q_DECLARE_PRIVATE(QHorizontalStackedBarSeries) 23 | Q_DISABLE_COPY(QHorizontalStackedBarSeries) 24 | }; 25 | 26 | QT_END_NAMESPACE 27 | 28 | #endif // QHORIZONTALSTACKEDBARSERIES_H 29 | -------------------------------------------------------------------------------- /tests/auto/qcandlestickseries/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 The Qt Company Ltd. 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | # Generated from qcandlestickseries.pro. 5 | 6 | ##################################################################### 7 | ## qcandlestickseries Test: 8 | ##################################################################### 9 | 10 | if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) 11 | cmake_minimum_required(VERSION 3.16) 12 | project(tst_qcandlestickseries LANGUAGES CXX) 13 | find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST) 14 | endif() 15 | 16 | qt_internal_add_test(tst_qcandlestickseries 17 | SOURCES 18 | ../inc/tst_definitions.h 19 | tst_qcandlestickseries.cpp 20 | INCLUDE_DIRECTORIES 21 | ../inc 22 | LIBRARIES 23 | Qt::Charts 24 | Qt::Gui 25 | Qt::Widgets 26 | ) 27 | -------------------------------------------------------------------------------- /examples/charts/audio/widget.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef WIDGET_H 5 | #define WIDGET_H 6 | 7 | #include 8 | 9 | QT_FORWARD_DECLARE_CLASS(QAudioDevice) 10 | QT_FORWARD_DECLARE_CLASS(QAudioInput) 11 | QT_FORWARD_DECLARE_CLASS(QAudioSource) 12 | QT_FORWARD_DECLARE_CLASS(QChart) 13 | QT_FORWARD_DECLARE_CLASS(QLineSeries) 14 | 15 | class XYSeriesIODevice; 16 | 17 | class Widget : public QWidget 18 | { 19 | Q_OBJECT 20 | public: 21 | explicit Widget(const QAudioDevice &deviceInfo, QWidget *parent = nullptr); 22 | ~Widget(); 23 | 24 | private: 25 | XYSeriesIODevice *m_device = nullptr; 26 | QChart *m_chart = nullptr; 27 | QLineSeries *m_series = nullptr; 28 | QAudioInput *m_audioInput = nullptr; 29 | QAudioSource *m_audioSource = nullptr; 30 | }; 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /tests/manual/qmlchartaxis/resources.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | qml/qmlchartaxis/main.qml 4 | qml/qmlchartaxis/Button.qml 5 | qml/qmlchartaxis/DefaultAxes.qml 6 | qml/qmlchartaxis/DefaultAxesRevert.qml 7 | qml/qmlchartaxis/UserDefined.qml 8 | qml/qmlchartaxis/UserDefinedRevert.qml 9 | qml/qmlchartaxis/ChartAxes.qml 10 | qml/qmlchartaxis/ChartAxesRevert.qml 11 | qml/qmlchartaxis/ConfiguringDynamically.qml 12 | qml/qmlchartaxis/SeriesSpecificDynamic.qml 13 | qml/qmlchartaxis/CreatingDynamically.qml 14 | qml/qmlchartaxis/SwitchingDynamically.qml 15 | qml/qmlchartaxis/DefaultAndUserDefined.qml 16 | 17 | 18 | -------------------------------------------------------------------------------- /tests/auto/qhorizontalbarseries/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 The Qt Company Ltd. 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | # Generated from qhorizontalbarseries.pro. 5 | 6 | ##################################################################### 7 | ## qhorizontalbarseries Test: 8 | ##################################################################### 9 | 10 | if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) 11 | cmake_minimum_required(VERSION 3.16) 12 | project(tst_qhorizontalbarseries LANGUAGES CXX) 13 | find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST) 14 | endif() 15 | 16 | qt_internal_add_test(tst_qhorizontalbarseries 17 | SOURCES 18 | ../inc/tst_definitions.h 19 | tst_qhorizontalbarseries.cpp 20 | INCLUDE_DIRECTORIES 21 | ../inc 22 | LIBRARIES 23 | Qt::Charts 24 | Qt::Gui 25 | Qt::Widgets 26 | ) 27 | -------------------------------------------------------------------------------- /tests/auto/chartdataset/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 The Qt Company Ltd. 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | # Generated from chartdataset.pro. 5 | 6 | ##################################################################### 7 | ## chartdataset Test: 8 | ##################################################################### 9 | 10 | if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) 11 | cmake_minimum_required(VERSION 3.16) 12 | project(tst_chartdataset LANGUAGES CXX) 13 | find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST) 14 | endif() 15 | 16 | qt_internal_add_test(tst_chartdataset 17 | SOURCES 18 | ../inc/tst_definitions.h 19 | tst_chartdataset.cpp 20 | INCLUDE_DIRECTORIES 21 | ../inc 22 | LIBRARIES 23 | Qt::Charts 24 | Qt::ChartsPrivate 25 | Qt::CorePrivate 26 | Qt::Gui 27 | Qt::Widgets 28 | ) 29 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/stackeddrilldownseries.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef STACKEDDRILLDOWNSERIES_H 5 | #define STACKEDDRILLDOWNSERIES_H 6 | 7 | #include 8 | #include 9 | 10 | //! [1] 11 | class StackedDrilldownSeries : public QStackedBarSeries 12 | { 13 | Q_OBJECT 14 | public: 15 | StackedDrilldownSeries(const QStringList &categories, int maxValue, QObject *parent = nullptr); 16 | 17 | void mapDrilldownSeries(int index, StackedDrilldownSeries *drilldownSeries); 18 | StackedDrilldownSeries *drilldownSeries(int index) const; 19 | QStringList categories() const; 20 | int maxValue() const; 21 | 22 | private: 23 | QMap m_drilldownSeries; 24 | QStringList m_categories; 25 | int m_maxValue = 0; 26 | }; 27 | //! [1] 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /tests/auto/qcandlestickmodelmapper/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 The Qt Company Ltd. 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | # Generated from qcandlestickmodelmapper.pro. 5 | 6 | ##################################################################### 7 | ## qcandlestickmodelmapper Test: 8 | ##################################################################### 9 | 10 | if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) 11 | cmake_minimum_required(VERSION 3.16) 12 | project(tst_qcandlestickmodelmapper LANGUAGES CXX) 13 | find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST) 14 | endif() 15 | 16 | qt_internal_add_test(tst_qcandlestickmodelmapper 17 | SOURCES 18 | ../inc/tst_definitions.h 19 | tst_qcandlestickmodelmapper.cpp 20 | INCLUDE_DIRECTORIES 21 | ../inc 22 | LIBRARIES 23 | Qt::Charts 24 | Qt::Gui 25 | Qt::Widgets 26 | ) 27 | -------------------------------------------------------------------------------- /tests/auto/qvalueaxis/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 The Qt Company Ltd. 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | # Generated from qvalueaxis.pro. 5 | 6 | ##################################################################### 7 | ## qvalueaxis Test: 8 | ##################################################################### 9 | 10 | if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) 11 | cmake_minimum_required(VERSION 3.16) 12 | project(tst_qvalueaxis LANGUAGES CXX) 13 | find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST) 14 | endif() 15 | 16 | qt_internal_add_test(tst_qvalueaxis 17 | SOURCES 18 | ../inc/tst_definitions.h 19 | ../qabstractaxis/tst_qabstractaxis.cpp ../qabstractaxis/tst_qabstractaxis.h 20 | tst_qvalueaxis.cpp 21 | INCLUDE_DIRECTORIES 22 | ../inc 23 | LIBRARIES 24 | Qt::Charts 25 | Qt::Gui 26 | Qt::Widgets 27 | ) 28 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/contentwidget.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef CONTENTWIDGET_H 5 | #define CONTENTWIDGET_H 6 | 7 | #include 8 | 9 | QT_FORWARD_DECLARE_CLASS(QChart) 10 | QT_FORWARD_DECLARE_CLASS(QChartView) 11 | 12 | class ContentWidget : public QWidget 13 | { 14 | Q_OBJECT 15 | public: 16 | explicit ContentWidget(QWidget *parent = nullptr); 17 | 18 | void load(); 19 | 20 | protected: 21 | virtual bool doLoad(); 22 | void resizeEvent(QResizeEvent *) override; 23 | void createDefaultChartView(QChart *chart); 24 | QChartView *defaultChartView() const { return m_defaultChartView; } 25 | void setDefaultChartView(QChartView *view); 26 | 27 | QString m_loadError; 28 | 29 | private: 30 | QChartView *m_defaultChartView = nullptr; 31 | bool m_loaded = false; 32 | }; 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /tests/auto/qsplineseries/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 The Qt Company Ltd. 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | # Generated from qsplineseries.pro. 5 | 6 | ##################################################################### 7 | ## qsplineseries Test: 8 | ##################################################################### 9 | 10 | if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) 11 | cmake_minimum_required(VERSION 3.16) 12 | project(tst_qsplineseries LANGUAGES CXX) 13 | find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST) 14 | endif() 15 | 16 | qt_internal_add_test(tst_qsplineseries 17 | SOURCES 18 | ../inc/tst_definitions.h 19 | ../qxyseries/tst_qxyseries.cpp ../qxyseries/tst_qxyseries.h 20 | tst_qsplineseries.cpp 21 | INCLUDE_DIRECTORIES 22 | ../inc 23 | LIBRARIES 24 | Qt::Charts 25 | Qt::Gui 26 | Qt::Widgets 27 | ) 28 | -------------------------------------------------------------------------------- /tests/manual/qmlchartaxis/qml/qmlchartaxis/DefaultAxes.qml: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | import QtQuick 2.0 5 | import QtCharts 2.0 6 | 7 | ChartView { 8 | id: chartView 9 | title: "default axes" 10 | 11 | LineSeries { 12 | name: "line series" 13 | XYPoint { x: 0; y: 0 } 14 | XYPoint { x: 1; y: 1 } 15 | XYPoint { x: 2; y: 2 } 16 | XYPoint { x: 3; y: 3 } 17 | XYPoint { x: 4; y: 4 } 18 | } 19 | 20 | ScatterSeries { 21 | name: "scatter series" 22 | XYPoint { x: 0; y: 0 } 23 | XYPoint { x: 0.5; y: 1 } 24 | XYPoint { x: 1; y: 2 } 25 | XYPoint { x: 1.5; y: 3 } 26 | XYPoint { x: 2; y: 4 } 27 | XYPoint { x: 1; y: 1 } 28 | XYPoint { x: 2; y: 2 } 29 | XYPoint { x: 3; y: 3 } 30 | XYPoint { x: 4; y: 4 } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/stackeddrilldownchart.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef STACKEDDRILLDOWNCHART_H 5 | #define STACKEDDRILLDOWNCHART_H 6 | 7 | #include "stackeddrilldownseries.h" 8 | 9 | #include 10 | 11 | QT_FORWARD_DECLARE_CLASS(QBarCategoryAxis) 12 | QT_FORWARD_DECLARE_CLASS(QValueAxis) 13 | 14 | //! [1] 15 | class StackedDrilldownChart : public QChart 16 | { 17 | Q_OBJECT 18 | public: 19 | explicit StackedDrilldownChart(QGraphicsItem *parent = nullptr, Qt::WindowFlags wFlags = {}); 20 | 21 | void changeSeries(StackedDrilldownSeries *series); 22 | 23 | public slots: 24 | void handleClicked(int index, QBarSet *); 25 | 26 | private: 27 | StackedDrilldownSeries *m_currentSeries = nullptr; 28 | QBarCategoryAxis *m_axisX = nullptr; 29 | QValueAxis *m_axisY = nullptr; 30 | }; 31 | //! [1] 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /tests/auto/qscatterseries/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 The Qt Company Ltd. 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | # Generated from qscatterseries.pro. 5 | 6 | ##################################################################### 7 | ## qscatterseries Test: 8 | ##################################################################### 9 | 10 | if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) 11 | cmake_minimum_required(VERSION 3.16) 12 | project(tst_qscatterseries LANGUAGES CXX) 13 | find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST) 14 | endif() 15 | 16 | qt_internal_add_test(tst_qscatterseries 17 | SOURCES 18 | ../inc/tst_definitions.h 19 | ../qxyseries/tst_qxyseries.cpp ../qxyseries/tst_qxyseries.h 20 | tst_qscatterseries.cpp 21 | INCLUDE_DIRECTORIES 22 | ../inc 23 | LIBRARIES 24 | Qt::Charts 25 | Qt::Gui 26 | Qt::Widgets 27 | ) 28 | -------------------------------------------------------------------------------- /tests/manual/qmlchartaxis/qml/qmlchartaxis/DefaultAxesRevert.qml: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | import QtQuick 2.0 5 | import QtCharts 2.0 6 | 7 | ChartView { 8 | id: chartView 9 | title: "default axes" 10 | 11 | ScatterSeries { 12 | name: "scatter series" 13 | XYPoint { x: 0; y: 0 } 14 | XYPoint { x: 0.5; y: 1 } 15 | XYPoint { x: 1; y: 2 } 16 | XYPoint { x: 1.5; y: 3 } 17 | XYPoint { x: 2; y: 4 } 18 | XYPoint { x: 1; y: 1 } 19 | XYPoint { x: 2; y: 2 } 20 | XYPoint { x: 3; y: 3 } 21 | XYPoint { x: 4; y: 4 } 22 | } 23 | 24 | LineSeries { 25 | name: "line series" 26 | XYPoint { x: 0; y: 0 } 27 | XYPoint { x: 1; y: 1 } 28 | XYPoint { x: 2; y: 2 } 29 | XYPoint { x: 3; y: 3 } 30 | XYPoint { x: 4; y: 4 } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/qhorizontalpercentbarseries/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 The Qt Company Ltd. 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | # Generated from qhorizontalpercentbarseries.pro. 5 | 6 | ##################################################################### 7 | ## qhorizontalpercentbarseries Test: 8 | ##################################################################### 9 | 10 | if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) 11 | cmake_minimum_required(VERSION 3.16) 12 | project(tst_qhorizontalpercentbarseries LANGUAGES CXX) 13 | find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST) 14 | endif() 15 | 16 | qt_internal_add_test(tst_qhorizontalpercentbarseries 17 | SOURCES 18 | ../inc/tst_definitions.h 19 | tst_qhorizontalpercentbarseries.cpp 20 | INCLUDE_DIRECTORIES 21 | ../inc 22 | LIBRARIES 23 | Qt::Charts 24 | Qt::Gui 25 | Qt::Widgets 26 | ) 27 | -------------------------------------------------------------------------------- /tests/auto/qhorizontalstackedbarseries/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 The Qt Company Ltd. 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | # Generated from qhorizontalstackedbarseries.pro. 5 | 6 | ##################################################################### 7 | ## qhorizontalstackedbarseries Test: 8 | ##################################################################### 9 | 10 | if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) 11 | cmake_minimum_required(VERSION 3.16) 12 | project(tst_qhorizontalstackedbarseries LANGUAGES CXX) 13 | find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST) 14 | endif() 15 | 16 | qt_internal_add_test(tst_qhorizontalstackedbarseries 17 | SOURCES 18 | ../inc/tst_definitions.h 19 | tst_qhorizontalstackedbarseries.cpp 20 | INCLUDE_DIRECTORIES 21 | ../inc 22 | LIBRARIES 23 | Qt::Charts 24 | Qt::Gui 25 | Qt::Widgets 26 | ) 27 | -------------------------------------------------------------------------------- /tests/manual/chartdesigner/objectinspectorwidget.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | #include "objectinspectorwidget.h" 5 | #include 6 | #include 7 | #include 8 | 9 | InspectorWidget::InspectorWidget() 10 | { 11 | 12 | } 13 | 14 | InspectorWidget::~InspectorWidget() 15 | { 16 | 17 | } 18 | 19 | QIcon InspectorWidget::getColorIcon(const QColor& color,const QSize &size) const 20 | { 21 | 22 | QString key = QString("COLOR_ICON=%1:%2x%3").arg(color.name()).arg(size.width()).arg(size.height()); 23 | 24 | QPixmap pixmap(size); 25 | 26 | if (!QPixmapCache::find(key, &pixmap)) { 27 | pixmap.fill(Qt::white); 28 | QPainter painter(&pixmap); 29 | painter.fillRect(2, 2, 46, 46, color); 30 | QPixmapCache::insert(key, pixmap); 31 | } 32 | 33 | return QIcon(pixmap); 34 | } 35 | -------------------------------------------------------------------------------- /tests/manual/openglseriestest/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 The Qt Company Ltd. 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | # Generated from openglseriestest.pro. 5 | 6 | ##################################################################### 7 | ## openglseriestest Binary: 8 | ##################################################################### 9 | 10 | qt_internal_add_manual_test(openglseriestest 11 | GUI 12 | SOURCES 13 | chartview.cpp chartview.h 14 | datasource.cpp datasource.h 15 | main.cpp 16 | mainwindow.cpp mainwindow.h mainwindow.ui 17 | NO_PCH_SOURCES 18 | mainwindow.cpp # undef QT_NO_FOREACH 19 | LIBRARIES 20 | Qt::Charts 21 | Qt::Gui 22 | Qt::OpenGL 23 | Qt::OpenGLWidgets 24 | Qt::Widgets 25 | ENABLE_AUTOGEN_TOOLS 26 | uic 27 | ) 28 | 29 | #### Keys ignored in scope 1:.:.:openglseriestest.pro:: 30 | # TEMPLATE = "app" 31 | -------------------------------------------------------------------------------- /plugins/designer/qchartsplugin.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | #ifndef QCHARTSPLUGIN_H 5 | #define QCHARTSPLUGIN_H 6 | 7 | #include 8 | 9 | class QChartsPlugin: public QObject, public QDesignerCustomWidgetInterface 10 | { 11 | Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerCustomWidgetInterface") 12 | 13 | Q_OBJECT 14 | Q_INTERFACES(QDesignerCustomWidgetInterface) 15 | public: 16 | QChartsPlugin(QObject *parent = 0); 17 | ~QChartsPlugin(); 18 | 19 | QString name() const; 20 | QString includeFile() const; 21 | QString group() const; 22 | QIcon icon() const; 23 | QString toolTip() const; 24 | QString whatsThis() const; 25 | bool isContainer() const; 26 | QWidget *createWidget(QWidget *parent); 27 | QString domXml() const; 28 | }; 29 | 30 | #endif /* QCHARTSPLUGIN_H */ 31 | -------------------------------------------------------------------------------- /tests/auto/qbarmodelmapper/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 The Qt Company Ltd. 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | # Generated from qbarmodelmapper.pro. 5 | 6 | ##################################################################### 7 | ## qbarmodelmapper Test: 8 | ##################################################################### 9 | 10 | if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) 11 | cmake_minimum_required(VERSION 3.16) 12 | project(tst_qbarmodelmapper LANGUAGES CXX) 13 | find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST) 14 | endif() 15 | 16 | qt_internal_add_test(tst_qbarmodelmapper 17 | SOURCES 18 | ../inc/tst_definitions.h 19 | tst_qbarmodelmapper.cpp 20 | INCLUDE_DIRECTORIES 21 | ../inc 22 | LIBRARIES 23 | Qt::Charts 24 | Qt::Gui 25 | Qt::Widgets 26 | Qt::Charts # special case 27 | Qt::Test # special case 28 | ) 29 | -------------------------------------------------------------------------------- /tests/auto/qcategoryaxis/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 The Qt Company Ltd. 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | # Generated from qcategoryaxis.pro. 5 | 6 | ##################################################################### 7 | ## qcategoryaxis Test: 8 | ##################################################################### 9 | 10 | if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) 11 | cmake_minimum_required(VERSION 3.16) 12 | project(tst_qcategoryaxis LANGUAGES CXX) 13 | find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST) 14 | endif() 15 | 16 | qt_internal_add_test(tst_qcategoryaxis 17 | SOURCES 18 | ../inc/tst_definitions.h 19 | ../qabstractaxis/tst_qabstractaxis.cpp ../qabstractaxis/tst_qabstractaxis.h 20 | tst_qcategoryaxis.cpp 21 | INCLUDE_DIRECTORIES 22 | ../inc 23 | LIBRARIES 24 | Qt::Charts 25 | Qt::Gui 26 | Qt::Widgets 27 | ) 28 | -------------------------------------------------------------------------------- /tests/auto/qdatetimeaxis/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 The Qt Company Ltd. 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | # Generated from qdatetimeaxis.pro. 5 | 6 | ##################################################################### 7 | ## qdatetimeaxis Test: 8 | ##################################################################### 9 | 10 | if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) 11 | cmake_minimum_required(VERSION 3.16) 12 | project(tst_qdatetimeaxis LANGUAGES CXX) 13 | find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST) 14 | endif() 15 | 16 | qt_internal_add_test(tst_qdatetimeaxis 17 | SOURCES 18 | ../inc/tst_definitions.h 19 | ../qabstractaxis/tst_qabstractaxis.cpp ../qabstractaxis/tst_qabstractaxis.h 20 | tst_qdatetimeaxis.cpp 21 | INCLUDE_DIRECTORIES 22 | ../inc 23 | LIBRARIES 24 | Qt::Charts 25 | Qt::Gui 26 | Qt::Widgets 27 | ) 28 | -------------------------------------------------------------------------------- /tests/auto/qlineseries/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 The Qt Company Ltd. 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | # Generated from qlineseries.pro. 5 | 6 | ##################################################################### 7 | ## qlineseries Test: 8 | ##################################################################### 9 | 10 | if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) 11 | cmake_minimum_required(VERSION 3.16) 12 | project(tst_qlineseries LANGUAGES CXX) 13 | find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST) 14 | endif() 15 | 16 | qt_internal_add_test(tst_qlineseries 17 | SOURCES 18 | ../inc/tst_definitions.h 19 | ../qxyseries/tst_qxyseries.cpp ../qxyseries/tst_qxyseries.h 20 | tst_qlineseries.cpp 21 | INCLUDE_DIRECTORIES 22 | ../inc 23 | LIBRARIES 24 | Qt::Charts 25 | Qt::Gui 26 | Qt::GuiPrivate 27 | Qt::Widgets 28 | ) 29 | -------------------------------------------------------------------------------- /tests/auto/qlogvalueaxis/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 The Qt Company Ltd. 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | # Generated from qlogvalueaxis.pro. 5 | 6 | ##################################################################### 7 | ## qlogvalueaxis Test: 8 | ##################################################################### 9 | 10 | if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) 11 | cmake_minimum_required(VERSION 3.16) 12 | project(tst_qlogvalueaxis LANGUAGES CXX) 13 | find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST) 14 | endif() 15 | 16 | qt_internal_add_test(tst_qlogvalueaxis 17 | SOURCES 18 | ../inc/tst_definitions.h 19 | ../qabstractaxis/tst_qabstractaxis.cpp ../qabstractaxis/tst_qabstractaxis.h 20 | tst_qlogvalueaxis.cpp 21 | INCLUDE_DIRECTORIES 22 | ../inc 23 | LIBRARIES 24 | Qt::Charts 25 | Qt::Gui 26 | Qt::Widgets 27 | ) 28 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/pccbrushtool.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef PCCBRUSHTOOL_H 5 | #define PCCBRUSHTOOL_H 6 | 7 | #include 8 | #include 9 | 10 | QT_FORWARD_DECLARE_CLASS(QComboBox) 11 | QT_FORWARD_DECLARE_CLASS(QPushButton) 12 | 13 | class PccBrushTool : public QWidget 14 | { 15 | Q_OBJECT 16 | 17 | public: 18 | explicit PccBrushTool(const QString &title, QWidget *parent = nullptr); 19 | void setBrush(const QBrush &brush); 20 | QBrush brush() const; 21 | QString name() const; 22 | static QString name(const QBrush &brush); 23 | 24 | signals: 25 | void changed(); 26 | 27 | public slots: 28 | void showColorDialog(); 29 | void updateStyle(); 30 | 31 | private: 32 | QBrush m_brush; 33 | QPushButton *m_colorButton = nullptr; 34 | QComboBox *m_styleCombo = nullptr; 35 | }; 36 | 37 | #endif 38 | -------------------------------------------------------------------------------- /src/charts/splinechart/qsplineseries.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | #ifndef QSPLINESERIES_H 5 | #define QSPLINESERIES_H 6 | #include 7 | #if QT_CONFIG(charts_spline_chart) 8 | #include 9 | #include 10 | #include 11 | 12 | QT_BEGIN_NAMESPACE 13 | 14 | class QSplineSeriesPrivate; 15 | 16 | class Q_CHARTS_EXPORT QSplineSeries : public QLineSeries 17 | { 18 | Q_OBJECT 19 | 20 | public: 21 | explicit QSplineSeries(QObject *parent = nullptr); 22 | ~QSplineSeries(); 23 | QAbstractSeries::SeriesType type() const override; 24 | 25 | private: 26 | Q_DECLARE_PRIVATE(QSplineSeries) 27 | Q_DISABLE_COPY(QSplineSeries) 28 | friend class SplineChartItem; 29 | }; 30 | 31 | QT_END_NAMESPACE 32 | 33 | #endif // QT_CONFIG(charts_spline_chart) 34 | #endif // QSPLINESERIES_H 35 | 36 | -------------------------------------------------------------------------------- /src/charts/linechart/qlineseries.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | 5 | #ifndef QLINESERIES_H 6 | #define QLINESERIES_H 7 | #include 8 | #if QT_CONFIG(charts_line_chart) 9 | #include 10 | #include 11 | 12 | QT_BEGIN_NAMESPACE 13 | 14 | class QLineSeriesPrivate; 15 | 16 | class Q_CHARTS_EXPORT QLineSeries : public QXYSeries 17 | { 18 | Q_OBJECT 19 | 20 | public: 21 | explicit QLineSeries(QObject *parent = nullptr); 22 | ~QLineSeries(); 23 | QAbstractSeries::SeriesType type() const override; 24 | 25 | protected: 26 | QLineSeries(QLineSeriesPrivate &d, QObject *parent = nullptr); 27 | 28 | private: 29 | Q_DECLARE_PRIVATE(QLineSeries) 30 | Q_DISABLE_COPY(QLineSeries) 31 | friend class LineChartItem; 32 | }; 33 | 34 | QT_END_NAMESPACE 35 | 36 | #endif // QT_CONFIG(charts_line_chart) 37 | #endif // QLINESERIES_H 38 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/linewidget.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #include "linewidget.h" 5 | 6 | #include 7 | #include 8 | 9 | LineWidget::LineWidget(QWidget *parent) 10 | : ContentWidget(parent) 11 | { 12 | //![1] 13 | auto series = new QLineSeries; 14 | //![1] 15 | 16 | //![2] 17 | series->append(0, 6); 18 | series->append(2, 4); 19 | series->append(3, 8); 20 | series->append(7, 4); 21 | series->append(10, 5); 22 | *series << QPointF(11, 1) << QPointF(13, 3) << QPointF(17, 6) << QPointF(18, 3) << QPointF(20, 2); 23 | //![2] 24 | 25 | //![3] 26 | auto chart = new QChart; 27 | chart->legend()->hide(); 28 | chart->addSeries(series); 29 | chart->createDefaultAxes(); 30 | chart->setTitle("Simple Line Chart"); 31 | //![3] 32 | 33 | //![4] 34 | createDefaultChartView(chart); 35 | //![4] 36 | } 37 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/interactionschart.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef INTERACTIONSCHART_H 5 | #define INTERACTIONSCHART_H 6 | 7 | #include 8 | 9 | QT_FORWARD_DECLARE_CLASS(QLineSeries) 10 | 11 | class InteractionsChart : public QChart 12 | { 13 | Q_OBJECT 14 | public: 15 | explicit InteractionsChart(QGraphicsItem *parent = nullptr, Qt::WindowFlags wFlags = {}, QLineSeries *series = nullptr); 16 | 17 | public slots: 18 | void clickPoint(const QPointF &point); 19 | 20 | public: 21 | void handlePointMove(const QPoint &point); 22 | void setPointClicked(bool clicked); 23 | 24 | private: 25 | qreal distance(const QPointF &p1, const QPointF &p2); 26 | 27 | QLineSeries *m_series = nullptr; 28 | QPointF m_movingPoint; 29 | 30 | // Boolean value to determine if an actual point in the series is clicked 31 | bool m_clicked = false; 32 | }; 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /examples/charts/qmlchartsgallery/qml/ScatterSeries.qml: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | import QtCharts 5 | 6 | //![1] 7 | ChartView { 8 | title: "Scatter Chart" 9 | anchors.fill: parent 10 | antialiasing: true 11 | 12 | ScatterSeries { 13 | id: scatter1 14 | name: "Scatter A" 15 | XYPoint { x: 1.5; y: 1.5 } 16 | XYPoint { x: 1.5; y: 1.6 } 17 | XYPoint { x: 1.57; y: 1.55 } 18 | XYPoint { x: 1.8; y: 1.8 } 19 | XYPoint { x: 1.9; y: 1.6 } 20 | XYPoint { x: 2.1; y: 1.3 } 21 | XYPoint { x: 2.5; y: 2.1 } 22 | } 23 | 24 | ScatterSeries { 25 | name: "Scatter B" 26 | XYPoint { x: 2.0; y: 2.0 } 27 | XYPoint { x: 2.0; y: 2.1 } 28 | XYPoint { x: 2.07; y: 2.05 } 29 | XYPoint { x: 2.2; y: 2.9 } 30 | XYPoint { x: 2.4; y: 2.7 } 31 | XYPoint { x: 2.67; y: 2.65 } 32 | } 33 | } 34 | //![1] 35 | -------------------------------------------------------------------------------- /src/charts/linechart/qlineseries_p.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | // W A R N I N G 5 | // ------------- 6 | // 7 | // This file is not part of the Qt Chart API. It exists purely as an 8 | // implementation detail. This header file may change from version to 9 | // version without notice, or even be removed. 10 | // 11 | // We mean it. 12 | 13 | #ifndef QLINESERIES_P_H 14 | #define QLINESERIES_P_H 15 | 16 | #include 17 | #include 18 | 19 | QT_BEGIN_NAMESPACE 20 | 21 | 22 | class Q_CHARTS_EXPORT QLineSeriesPrivate: public QXYSeriesPrivate 23 | { 24 | public: 25 | QLineSeriesPrivate(QLineSeries *q); 26 | void initializeGraphics(QGraphicsItem* parent) override; 27 | void initializeTheme(int index, ChartTheme* theme, bool forced = false) override; 28 | 29 | private: 30 | Q_DECLARE_PUBLIC(QLineSeries); 31 | }; 32 | 33 | QT_END_NAMESPACE 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/legendmarkerswidget.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #ifndef LEGENDMARKERSWIDGET_H 5 | #define LEGENDMARKERSWIDGET_H 6 | 7 | #include "contentwidget.h" 8 | 9 | QT_FORWARD_DECLARE_CLASS(QChart) 10 | QT_FORWARD_DECLARE_CLASS(QChartView) 11 | QT_FORWARD_DECLARE_CLASS(QGridLayout) 12 | QT_FORWARD_DECLARE_CLASS(QLineSeries) 13 | 14 | class LegendMarkersWidget : public ContentWidget 15 | { 16 | Q_OBJECT 17 | public: 18 | explicit LegendMarkersWidget(QWidget *parent = nullptr); 19 | 20 | public slots: 21 | void addSeries(); 22 | void removeSeries(); 23 | void connectMarkers(); 24 | void disconnectMarkers(); 25 | void handleMarkerClicked(); 26 | 27 | private: 28 | QChart *m_chart = nullptr; 29 | QChartView *m_chartView = nullptr; 30 | QGridLayout *m_mainLayout = nullptr; 31 | QGridLayout *m_fontLayout = nullptr; 32 | QList m_series; 33 | }; 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /src/charts/qchartglobal.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | #ifndef QCHARTGLOBAL_H 5 | #define QCHARTGLOBAL_H 6 | 7 | #if 0 8 | #pragma qt_class(QChartGlobal) 9 | #endif 10 | 11 | #include 12 | #include 13 | #include 14 | 15 | #define Q_CHARTS_AUTOTEST_EXPORT Q_AUTOTEST_EXPORT 16 | 17 | #define QT_CHARTS_VERSION_STR QT_VERSION_STR 18 | /* 19 | QT_CHARTS_VERSION is (major << 16) + (minor << 8) + patch. 20 | */ 21 | #define QT_CHARTS_VERSION QT_VERSION 22 | /* 23 | can be used like #if (QT_CHARTS_VERSION >= QT_CHARTS_VERSION_CHECK(1, 1, 0)) 24 | */ 25 | #define QT_CHARTS_VERSION_CHECK(major, minor, patch) ((major<<16)|(minor<<8)|(patch)) 26 | 27 | #ifdef QTGRAPHS_HEADERS 28 | #error Mixing QtCharts and QtGraphs in the same TU is unsupported since they use\ 29 | the same class names. 30 | #endif 31 | 32 | #define QTCHARTS_HEADERS 33 | 34 | #endif // QCHARTGLOBAL_H 35 | -------------------------------------------------------------------------------- /tests/manual/openglseriestest/chartview.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | #include "chartview.h" 5 | #include 6 | 7 | QT_USE_NAMESPACE 8 | 9 | ChartView::ChartView(QWidget *parent) : 10 | QChartView(parent) 11 | { 12 | } 13 | 14 | void ChartView::keyPressEvent(QKeyEvent *event) 15 | { 16 | switch (event->key()) { 17 | case Qt::Key_Plus: 18 | chart()->zoomIn(); 19 | break; 20 | case Qt::Key_Minus: 21 | chart()->zoomOut(); 22 | break; 23 | case Qt::Key_Left: 24 | chart()->scroll(-1.0, 0); 25 | break; 26 | case Qt::Key_Right: 27 | chart()->scroll(1.0, 0); 28 | break; 29 | case Qt::Key_Up: 30 | chart()->scroll(0, 1.0); 31 | break; 32 | case Qt::Key_Down: 33 | chart()->scroll(0, -1.0); 34 | break; 35 | default: 36 | QGraphicsView::keyPressEvent(event); 37 | break; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /dist/changes-5.10.0: -------------------------------------------------------------------------------- 1 | Qt 5.10 introduces many new features and improvements as well as bugfixes 2 | over the 5.9.x series. For more details, refer to the online documentation 3 | included in this distribution. The documentation is also available online: 4 | 5 | http://doc.qt.io/qt-5/index.html 6 | 7 | The Qt version 5.10 series is binary compatible with the 5.10.x series. 8 | Applications compiled for 5.9 will continue to run with 5.10. 9 | 10 | Some of the changes listed in this file include issue tracking numbers 11 | corresponding to tasks in the Qt Bug Tracker: 12 | 13 | https://bugreports.qt.io/ 14 | 15 | Each of these identifiers can be entered in the bug tracker to obtain more 16 | information about a particular change. 17 | 18 | **************************************************************************** 19 | * Qt 5.10.0 Changes * 20 | **************************************************************************** 21 | 22 | - This release contains only minor code improvements. 23 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/interactionsview.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #include "interactionschart.h" 5 | #include "interactionsview.h" 6 | 7 | #include 8 | 9 | InteractionsView::InteractionsView(InteractionsChart *chart, QWidget *parent) : 10 | QChartView(chart, parent) 11 | { 12 | m_chart = chart; 13 | } 14 | 15 | void InteractionsView::mousePressEvent(QMouseEvent *event) 16 | { 17 | m_mousePos = event->pos(); 18 | QChartView::mousePressEvent(event); 19 | } 20 | 21 | void InteractionsView::mouseMoveEvent(QMouseEvent *event) 22 | { 23 | m_chart->handlePointMove(event->pos()); 24 | QChartView::mouseMoveEvent(event); 25 | } 26 | 27 | void InteractionsView::mouseReleaseEvent(QMouseEvent *event) 28 | { 29 | if (event->pos() != m_mousePos) { 30 | m_chart->handlePointMove(event->pos()); 31 | m_chart->setPointClicked(false); 32 | } 33 | QChartView::mouseReleaseEvent(event); 34 | } 35 | -------------------------------------------------------------------------------- /dist/changes-5.14.0: -------------------------------------------------------------------------------- 1 | Qt 5.14 introduces many new features and improvements as well as bugfixes 2 | over the 5.13.x series. For more details, refer to the online documentation 3 | included in this distribution. The documentation is also available online: 4 | 5 | https://doc.qt.io/qt-5/index.html 6 | 7 | The Qt version 5.14 series is binary compatible with the 5.13.x series. 8 | Applications compiled for 5.13 will continue to run with 5.14. 9 | 10 | Some of the changes listed in this file include issue tracking numbers 11 | corresponding to tasks in the Qt Bug Tracker: 12 | 13 | https://bugreports.qt.io/ 14 | 15 | Each of these identifiers can be entered in the bug tracker to obtain more 16 | information about a particular change. 17 | 18 | **************************************************************************** 19 | * Bug Fixes * 20 | **************************************************************************** 21 | 22 | - [QTBUG-79188] Fix removing rows from candlestick model mapper 23 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/donutbreakdownmainslice.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #include "donutbreakdownmainslice.h" 5 | 6 | //![1] 7 | DonutBreakdownMainSlice::DonutBreakdownMainSlice(QPieSeries *breakdownSeries, QObject *parent) 8 | : QPieSlice(parent), 9 | m_breakdownSeries(breakdownSeries) 10 | { 11 | connect(this, &DonutBreakdownMainSlice::percentageChanged, 12 | this, &DonutBreakdownMainSlice::updateLabel); 13 | } 14 | //![1] 15 | 16 | QPieSeries *DonutBreakdownMainSlice::breakdownSeries() const 17 | { 18 | return m_breakdownSeries; 19 | } 20 | 21 | void DonutBreakdownMainSlice::setName(const QString &name) 22 | { 23 | m_name = name; 24 | } 25 | 26 | QString DonutBreakdownMainSlice::name() const 27 | { 28 | return m_name; 29 | } 30 | 31 | //![2] 32 | void DonutBreakdownMainSlice::updateLabel() 33 | { 34 | setLabel(QString("%1 %2%").arg(m_name).arg(percentage() * 100, 0, 'f', 2)); 35 | } 36 | //![2] 37 | -------------------------------------------------------------------------------- /examples/charts/openglseries/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 The Qt Company Ltd. 2 | # SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | cmake_minimum_required(VERSION 3.16) 5 | project(openglseries LANGUAGES CXX) 6 | 7 | if(NOT DEFINED INSTALL_EXAMPLESDIR) 8 | set(INSTALL_EXAMPLESDIR "examples") 9 | endif() 10 | 11 | set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/charts/openglseries") 12 | 13 | find_package(Qt6 REQUIRED COMPONENTS Charts Core Gui) 14 | 15 | qt_standard_project_setup() 16 | 17 | qt_add_executable(openglseries 18 | datasource.cpp datasource.h 19 | main.cpp 20 | ) 21 | 22 | set_target_properties(openglseries PROPERTIES 23 | WIN32_EXECUTABLE TRUE 24 | MACOSX_BUNDLE TRUE 25 | ) 26 | 27 | target_link_libraries(openglseries PUBLIC 28 | Qt::Charts 29 | Qt::Core 30 | Qt::Gui 31 | ) 32 | 33 | install(TARGETS openglseries 34 | RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" 35 | BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" 36 | LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" 37 | ) 38 | -------------------------------------------------------------------------------- /src/charts/animations/scatteranimation_p.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | // W A R N I N G 5 | // ------------- 6 | // 7 | // This file is not part of the Qt Chart API. It exists purely as an 8 | // implementation detail. This header file may change from version to 9 | // version without notice, or even be removed. 10 | // 11 | // We mean it. 12 | 13 | #ifndef SCATTERANIMATION_P_H 14 | #define SCATTERANIMATION_P_H 15 | 16 | #include 17 | #include 18 | 19 | QT_BEGIN_NAMESPACE 20 | 21 | class ScatterChartItem; 22 | 23 | class Q_CHARTS_EXPORT ScatterAnimation : public XYAnimation 24 | { 25 | public: 26 | ScatterAnimation(ScatterChartItem *item, int duration, QEasingCurve &curve); 27 | ~ScatterAnimation(); 28 | 29 | protected: 30 | 31 | void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) override; 32 | }; 33 | 34 | QT_END_NAMESPACE 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /src/charts/legend/qcandlesticklegendmarker.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | #ifndef QCANDLESTICKLEGENDMARKER_H 5 | #define QCANDLESTICKLEGENDMARKER_H 6 | 7 | #include 8 | #include 9 | 10 | QT_BEGIN_NAMESPACE 11 | 12 | class QCandlestickLegendMarkerPrivate; 13 | 14 | class Q_CHARTS_EXPORT QCandlestickLegendMarker : public QLegendMarker 15 | { 16 | Q_OBJECT 17 | 18 | public: 19 | explicit QCandlestickLegendMarker(QCandlestickSeries *series, QLegend *legend, 20 | QObject *parent = nullptr); 21 | virtual ~QCandlestickLegendMarker(); 22 | 23 | LegendMarkerType type() override; 24 | 25 | // Related series 26 | QCandlestickSeries* series() override; 27 | 28 | private: 29 | Q_DECLARE_PRIVATE(QCandlestickLegendMarker) 30 | Q_DISABLE_COPY(QCandlestickLegendMarker) 31 | }; 32 | 33 | QT_END_NAMESPACE 34 | 35 | #endif // QCANDLESTICKLEGENDMARKER_H 36 | -------------------------------------------------------------------------------- /src/charts/barchart/vertical/bar/qbarseries_p.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | // W A R N I N G 5 | // ------------- 6 | // 7 | // This file is not part of the Qt Chart API. It exists purely as an 8 | // implementation detail. This header file may change from version to 9 | // version without notice, or even be removed. 10 | // 11 | // We mean it. 12 | 13 | #ifndef QBARSERIES_P_H 14 | #define QBARSERIES_P_H 15 | 16 | #include 17 | #include 18 | #include 19 | 20 | QT_BEGIN_NAMESPACE 21 | 22 | 23 | class Q_CHARTS_EXPORT QBarSeriesPrivate: public QAbstractBarSeriesPrivate 24 | { 25 | public: 26 | QBarSeriesPrivate(QBarSeries *q); 27 | void initializeGraphics(QGraphicsItem* parent) override; 28 | void initializeDomain() override; 29 | 30 | private: 31 | Q_DECLARE_PUBLIC(QBarSeries) 32 | }; 33 | 34 | QT_END_NAMESPACE 35 | 36 | #endif // QBARSERIES_P_H 37 | -------------------------------------------------------------------------------- /tests/auto/qbarcategoryaxis/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 The Qt Company Ltd. 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | # Generated from qbarcategoryaxis.pro. 5 | 6 | ##################################################################### 7 | ## qbarcategoryaxis Test: 8 | ##################################################################### 9 | 10 | if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) 11 | cmake_minimum_required(VERSION 3.16) 12 | project(tst_qbarcategoryaxis LANGUAGES CXX) 13 | find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST) 14 | endif() 15 | 16 | qt_internal_add_test(tst_qbarcategoryaxis 17 | SOURCES 18 | ../inc/tst_definitions.h 19 | ../qabstractaxis/tst_qabstractaxis.cpp ../qabstractaxis/tst_qabstractaxis.h 20 | tst_qbarcategoryaxis.cpp 21 | NO_PCH_SOURCES 22 | tst_qbarcategoryaxis.cpp # undef QT_NO_FOREACH 23 | INCLUDE_DIRECTORIES 24 | ../inc 25 | LIBRARIES 26 | Qt::Charts 27 | Qt::Gui 28 | Qt::Widgets 29 | ) 30 | -------------------------------------------------------------------------------- /src/charts/legend/qxylegendmarker.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | #ifndef QXYLEGENDMARKER_H 5 | #define QXYLEGENDMARKER_H 6 | 7 | #include 8 | #include 9 | #include 10 | 11 | QT_BEGIN_NAMESPACE 12 | 13 | class QXYLegendMarkerPrivate; 14 | 15 | class Q_CHARTS_EXPORT QXYLegendMarker : public QLegendMarker 16 | { 17 | Q_OBJECT 18 | public: 19 | explicit QXYLegendMarker(QXYSeries *series, QLegend *legend, QObject *parent = nullptr); 20 | virtual ~QXYLegendMarker(); 21 | 22 | LegendMarkerType type() override { return LegendMarkerTypeXY; } 23 | 24 | // Related series 25 | QXYSeries* series() override; 26 | 27 | protected: 28 | QXYLegendMarker(QXYLegendMarkerPrivate &d, QObject *parent = nullptr); 29 | 30 | private: 31 | Q_DECLARE_PRIVATE(QXYLegendMarker) 32 | Q_DISABLE_COPY(QXYLegendMarker) 33 | 34 | }; 35 | 36 | QT_END_NAMESPACE 37 | 38 | #endif // QXYLEGENDMARKER_H 39 | -------------------------------------------------------------------------------- /dist/changes-5.9.5: -------------------------------------------------------------------------------- 1 | Qt 5.9.5 is a bug-fix release. It maintains both forward and backward 2 | compatibility (source and binary) with Qt 5.9.0. 3 | 4 | For more details, refer to the online documentation included in this 5 | distribution. The documentation is also available online: 6 | 7 | http://doc.qt.io/qt-5/index.html 8 | 9 | The Qt version 5.9 series is binary compatible with the 5.8.x series. 10 | Applications compiled for 5.9 will continue to run with 5.9. 11 | 12 | Some of the changes listed in this file include issue tracking numbers 13 | corresponding to tasks in the Qt Bug Tracker: 14 | 15 | https://bugreports.qt.io/ 16 | 17 | Each of these identifiers can be entered in the bug tracker to obtain more 18 | information about a particular change. 19 | 20 | **************************************************************************** 21 | * Qt 5.9.5 Changes * 22 | **************************************************************************** 23 | 24 | - This release contains only minor code improvements. 25 | -------------------------------------------------------------------------------- /examples/charts/chartsgallery/stackeddrilldownseries.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2023 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | #include "stackeddrilldownseries.h" 5 | 6 | StackedDrilldownSeries::StackedDrilldownSeries(const QStringList &categories, 7 | int maxValue, 8 | QObject *parent) 9 | : QStackedBarSeries(parent) 10 | , m_maxValue(maxValue) 11 | { 12 | m_categories = categories; 13 | } 14 | 15 | void StackedDrilldownSeries::mapDrilldownSeries(int index, StackedDrilldownSeries *drilldownSeries) 16 | { 17 | m_drilldownSeries[index] = drilldownSeries; 18 | } 19 | 20 | StackedDrilldownSeries *StackedDrilldownSeries::drilldownSeries(int index) const 21 | { 22 | return m_drilldownSeries[index]; 23 | } 24 | 25 | QStringList StackedDrilldownSeries::categories() const 26 | { 27 | return m_categories; 28 | } 29 | 30 | int StackedDrilldownSeries::maxValue() const 31 | { 32 | return m_maxValue; 33 | } 34 | -------------------------------------------------------------------------------- /dist/changes-5.9.4: -------------------------------------------------------------------------------- 1 | Qt 5.9.4 is a bug-fix release. It maintains both forward and backward 2 | compatibility (source and binary) with Qt 5.9.0. 3 | 4 | For more details, refer to the online documentation included in this 5 | distribution. The documentation is also available online: 6 | 7 | http://doc.qt.io/qt-5/index.html 8 | 9 | The Qt version 5.9 series is binary compatible with the 5.8.x series. 10 | Applications compiled for 5.8 will continue to run with 5.9. 11 | 12 | Some of the changes listed in this file include issue tracking numbers 13 | corresponding to tasks in the Qt Bug Tracker: 14 | 15 | https://bugreports.qt.io/ 16 | 17 | Each of these identifiers can be entered in the bug tracker to obtain more 18 | information about a particular change. 19 | 20 | **************************************************************************** 21 | * Qt 5.9.4 Changes * 22 | **************************************************************************** 23 | 24 | - This release contains only minor code improvements. 25 | 26 | -------------------------------------------------------------------------------- /src/chartsqml2/declarativeaxes.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | #include "declarativeaxes_p.h" 5 | #include 6 | 7 | QT_BEGIN_NAMESPACE 8 | 9 | DeclarativeAxes::DeclarativeAxes(QObject *parent) : 10 | QObject(parent), 11 | m_axisX(0), 12 | m_axisY(0), 13 | m_axisXTop(0), 14 | m_axisYRight(0) 15 | { 16 | } 17 | 18 | void DeclarativeAxes::setAxisX(QAbstractAxis *axis) 19 | { 20 | m_axisX = axis; 21 | emit axisXChanged(axis); 22 | } 23 | 24 | void DeclarativeAxes::setAxisY(QAbstractAxis *axis) 25 | { 26 | m_axisY = axis; 27 | emit axisYChanged(axis); 28 | } 29 | 30 | void DeclarativeAxes::setAxisXTop(QAbstractAxis *axis) 31 | { 32 | m_axisXTop = axis; 33 | emit axisXTopChanged(axis); 34 | } 35 | 36 | void DeclarativeAxes::setAxisYRight(QAbstractAxis *axis) 37 | { 38 | m_axisYRight = axis; 39 | emit axisYRightChanged(axis); 40 | } 41 | 42 | QT_END_NAMESPACE 43 | 44 | #include "moc_declarativeaxes_p.cpp" 45 | -------------------------------------------------------------------------------- /dist/changes-5.9.1: -------------------------------------------------------------------------------- 1 | Qt 5.9.1 is a bug-fix release. It maintains both forward and backward 2 | compatibility (source and binary) with Qt 5.9.0. 3 | 4 | For more details, refer to the online documentation included in this 5 | distribution. The documentation is also available online: 6 | 7 | http://doc.qt.io/qt-5/index.html 8 | 9 | The Qt version 5.9 series is binary compatible with the 5.8.x series. 10 | Applications compiled for 5.8 will continue to run with 5.9. 11 | 12 | Some of the changes listed in this file include issue tracking numbers 13 | corresponding to tasks in the Qt Bug Tracker: 14 | 15 | https://bugreports.qt.io/ 16 | 17 | Each of these identifiers can be entered in the bug tracker to obtain more 18 | information about a particular change. 19 | 20 | **************************************************************************** 21 | * Qt 5.9.1 Changes * 22 | **************************************************************************** 23 | 24 | Fixed issues 25 | ------------ 26 | - Fixed QXYModelMapper sync issues 27 | -------------------------------------------------------------------------------- /dist/changes-5.9.3: -------------------------------------------------------------------------------- 1 | Qt 5.9.3 is a bug-fix release. It maintains both forward and backward 2 | compatibility (source and binary) with Qt 5.9.0. 3 | 4 | For more details, refer to the online documentation included in this 5 | distribution. The documentation is also available online: 6 | 7 | http://doc.qt.io/qt-5/index.html 8 | 9 | The Qt version 5.9 series is binary compatible with the 5.8.x series. 10 | Applications compiled for 5.8 will continue to run with 5.9. 11 | 12 | Some of the changes listed in this file include issue tracking numbers 13 | corresponding to tasks in the Qt Bug Tracker: 14 | 15 | https://bugreports.qt.io/ 16 | 17 | Each of these identifiers can be entered in the bug tracker to obtain more 18 | information about a particular change. 19 | 20 | **************************************************************************** 21 | * Qt 5.9.3 Changes * 22 | **************************************************************************** 23 | 24 | - [QTBUG-63807] Add shaders suitable for CoreProfile for QtQuick charts 25 | -------------------------------------------------------------------------------- /dist/changes-5.9.6: -------------------------------------------------------------------------------- 1 | Qt 5.9.6 is a bug-fix release. It maintains both forward and backward 2 | compatibility (source and binary) with Qt 5.9.0 through 5.9.5. 3 | 4 | For more details, refer to the online documentation included in this 5 | distribution. The documentation is also available online: 6 | 7 | http://doc.qt.io/qt-5/index.html 8 | 9 | The Qt version 5.9 series is binary compatible with the 5.8.x series. 10 | Applications compiled for 5.8 will continue to run with 5.9. 11 | 12 | Some of the changes listed in this file include issue tracking numbers 13 | corresponding to tasks in the Qt Bug Tracker: 14 | 15 | https://bugreports.qt.io/ 16 | 17 | Each of these identifiers can be entered in the bug tracker to obtain more 18 | information about a particular change. 19 | 20 | **************************************************************************** 21 | * Qt 5.9.6 Changes * 22 | **************************************************************************** 23 | 24 | - This release contains only minor code improvements. 25 | -------------------------------------------------------------------------------- /dist/changes-5.11.2: -------------------------------------------------------------------------------- 1 | Qt 5.11.2 is a bug-fix release. It maintains both forward and backward 2 | compatibility (source and binary) with Qt 5.11.0 through 5.11.1. 3 | 4 | For more details, refer to the online documentation included in this 5 | distribution. The documentation is also available online: 6 | 7 | http://doc.qt.io/qt-5/index.html 8 | 9 | The Qt version 5.11 series is binary compatible with the 5.10.x series. 10 | Applications compiled for 5.10 will continue to run with 5.11. 11 | 12 | Some of the changes listed in this file include issue tracking numbers 13 | corresponding to tasks in the Qt Bug Tracker: 14 | 15 | https://bugreports.qt.io/ 16 | 17 | Each of these identifiers can be entered in the bug tracker to obtain more 18 | information about a particular change. 19 | 20 | **************************************************************************** 21 | * Qt 5.11.2 Changes * 22 | **************************************************************************** 23 | 24 | - This release contains only minor code improvements. 25 | -------------------------------------------------------------------------------- /examples/charts/zoomlinechart/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 The Qt Company Ltd. 2 | # SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause 3 | 4 | cmake_minimum_required(VERSION 3.16) 5 | project(zoomlinechart LANGUAGES CXX) 6 | 7 | if(NOT DEFINED INSTALL_EXAMPLESDIR) 8 | set(INSTALL_EXAMPLESDIR "examples") 9 | endif() 10 | 11 | set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/charts/zoomlinechart") 12 | 13 | find_package(Qt6 REQUIRED COMPONENTS Charts Core Gui) 14 | 15 | qt_standard_project_setup() 16 | 17 | qt_add_executable(zoomlinechart 18 | chart.cpp chart.h 19 | chartview.cpp chartview.h 20 | main.cpp 21 | ) 22 | 23 | set_target_properties(zoomlinechart PROPERTIES 24 | WIN32_EXECUTABLE TRUE 25 | MACOSX_BUNDLE TRUE 26 | ) 27 | 28 | target_link_libraries(zoomlinechart PUBLIC 29 | Qt::Charts 30 | Qt::Core 31 | Qt::Gui 32 | ) 33 | 34 | install(TARGETS zoomlinechart 35 | RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" 36 | BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" 37 | LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" 38 | ) 39 | -------------------------------------------------------------------------------- /src/charts/barchart/vertical/percent/qpercentbarseries_p.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 The Qt Company Ltd. 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 3 | 4 | // W A R N I N G 5 | // ------------- 6 | // 7 | // This file is not part of the Qt Chart API. It exists purely as an 8 | // implementation detail. This header file may change from version to 9 | // version without notice, or even be removed. 10 | // 11 | // We mean it. 12 | 13 | #ifndef QPERCENTBARSERIES_P_H 14 | #define QPERCENTBARSERIES_P_H 15 | 16 | #include 17 | #include 18 | #include 19 | 20 | QT_BEGIN_NAMESPACE 21 | 22 | 23 | class Q_CHARTS_EXPORT QPercentBarSeriesPrivate: public QAbstractBarSeriesPrivate 24 | { 25 | public: 26 | QPercentBarSeriesPrivate(QPercentBarSeries *q); 27 | void initializeDomain() override; 28 | void initializeGraphics(QGraphicsItem* parent) override; 29 | private: 30 | Q_DECLARE_PUBLIC(QPercentBarSeries) 31 | }; 32 | 33 | QT_END_NAMESPACE 34 | 35 | #endif 36 | --------------------------------------------------------------------------------