##// END OF EJS Templates
Fixed a double delete chrash with scatter example
Jani Honkonen -
r129:716ea76b6c6c
parent child
Show More
@@ -12,9 +12,9 int main(int argc, char *argv[])
12 12 QApplication a(argc, argv);
13 13
14 14 // Create widget and scatter series
15 QChartWidget chartWidget;
15 QChartWidget *chartWidget = new QChartWidget();
16 16 QScatterSeries *scatter =
17 qobject_cast<QScatterSeries *>(chartWidget.createSeries(QChartSeries::SeriesTypeScatter));
17 qobject_cast<QScatterSeries *>(chartWidget->createSeries(QChartSeries::SeriesTypeScatter));
18 18 Q_ASSERT(scatter);
19 19
20 20 // Add test data to the series
@@ -30,7 +30,7 int main(int argc, char *argv[])
30 30 // Use the chart widget as the central widget
31 31 QMainWindow w;
32 32 w.resize(640, 480);
33 w.setCentralWidget(&chartWidget);
33 w.setCentralWidget(chartWidget);
34 34 w.show();
35 35
36 36 return a.exec();
General Comments 0
You need to be logged in to leave comments. Login now