##// END OF EJS Templates
Updated spline nad legend example
Marek Rosa -
r1585:2ba1d7112404
parent child
Show More
@@ -41,6 +41,7 Chart::Chart(QGraphicsItem *parent, Qt::WindowFlags wFlags)
41 41 m_series->append(m_x, m_y);
42 42
43 43 addSeries(m_series);
44 createDefaultAxes();
44 45
45 46 axisY()->setRange(-5, 5);
46 47 axisX()->setRange(-9, 1);
@@ -126,6 +126,7 void MainWidget::createSeries()
126 126
127 127 m_chart->addSeries(m_series);
128 128 m_chart->setTitle("Legend detach example");
129 m_chart->createDefaultAxes();
129 130 //![1]
130 131 m_chart->legend()->setVisible(true);
131 132 m_chart->legend()->setAlignment(Qt::AlignBottom);
General Comments 0
You need to be logged in to leave comments. Login now