@@ -47,7 +47,6 int main(int argc, char *argv[]) | |||
|
47 | 47 | chart->setAnimationOptions(QChart::SeriesAnimations); |
|
48 | 48 | chart->legend()->hide(); |
|
49 | 49 | chart->createDefaultAxes(); |
|
50 | qobject_cast<QValueAxis*>(chart->axisX())->setNiceNumbersEnabled(true); | |
|
51 | 50 | |
|
52 | 51 | ChartView *chartView = new ChartView(chart); |
|
53 | 52 | chartView->setRenderHint(QPainter::Antialiasing); |
@@ -59,7 +58,5 int main(int argc, char *argv[]) | |||
|
59 | 58 | window.grabGesture(Qt::PinchGesture); |
|
60 | 59 | window.show(); |
|
61 | 60 | |
|
62 | qobject_cast<QValueAxis*>(chart->axisX())->setMax(600); | |
|
63 | ||
|
64 | 61 | return a.exec(); |
|
65 | 62 | } |
General Comments 0
You need to be logged in to leave comments.
Login now