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