@@ -33,6 +33,7 int main(int argc, char *argv[]) | |||||
33 |
|
33 | |||
34 | QChartView* chartView = new QChartView(&window); |
|
34 | QChartView* chartView = new QChartView(&window); | |
35 | chartView->setRenderHint(QPainter::Antialiasing); |
|
35 | chartView->setRenderHint(QPainter::Antialiasing); | |
|
36 | chartView->setTitle("Custom color line chart example"); | |||
36 | chartView->addSeries(series0); |
|
37 | chartView->addSeries(series0); | |
37 | chartView->addSeries(series1); |
|
38 | chartView->addSeries(series1); | |
38 | chartView->setBackground(Qt::blue,Qt::yellow,QChart::HorizonatlGradientOrientation); |
|
39 | chartView->setBackground(Qt::blue,Qt::yellow,QChart::HorizonatlGradientOrientation); |
@@ -31,6 +31,8 int main(int argc, char *argv[]) | |||||
31 | } |
|
31 | } | |
32 |
|
32 | |||
33 | ChartWidget* chartWidget = new ChartWidget(&window); |
|
33 | ChartWidget* chartWidget = new ChartWidget(&window); | |
|
34 | chartWidget->setRenderHint(QPainter::Antialiasing); | |||
|
35 | chartWidget->setTitle("Zoom in/out line chart example"); | |||
34 | chartWidget->addSeries(series0); |
|
36 | chartWidget->addSeries(series0); | |
35 | chartWidget->addSeries(series1); |
|
37 | chartWidget->addSeries(series1); | |
36 |
|
38 |
General Comments 0
You need to be logged in to leave comments.
Login now