diff --git a/example/gdpbarchart/widget.cpp b/example/gdpbarchart/widget.cpp index 1fbcc64..32bda7a 100644 --- a/example/gdpbarchart/widget.cpp +++ b/example/gdpbarchart/widget.cpp @@ -19,6 +19,7 @@ #include #include #include +#include QTCOMMERCIALCHART_USE_NAMESPACE @@ -125,7 +126,7 @@ void Widget::refreshChart() QStringList category; for (int i = 0; i < selectedCountriesStrings.size(); i++) category << selectedCountriesStrings[i]; - QBarChartSeries* series0 = new QBarChartSeries(category); + QBarSeries* series0 = new QBarSeries(category); series0 = new QBarSeries(category); // prepare the selected counries SQL query