diff --git a/src/qchart.cpp b/src/qchart.cpp index aed22d4..b9ed712 100644 --- a/src/qchart.cpp +++ b/src/qchart.cpp @@ -69,6 +69,7 @@ QChart::QChart(QGraphicsItem *parent, Qt::WindowFlags wFlags) : QGraphicsWidget( d_ptr(new QChartPrivate()) { d_ptr->m_legend = new ScrolledQLegend(this); + d_ptr->m_legend->setVisible(false); d_ptr->m_dataset = new ChartDataSet(this); d_ptr->m_presenter = new ChartPresenter(this,d_ptr->m_dataset); d_ptr->m_presenter->setTheme(QChart::ChartThemeLight, false);