diff --git a/src/qchartwidget.cpp b/src/qchartwidget.cpp index 302c79d..27a86c8 100644 --- a/src/qchartwidget.cpp +++ b/src/qchartwidget.cpp @@ -16,6 +16,8 @@ public: { m_scene = new QGraphicsScene(); m_view = new QGraphicsView(parent); + m_view->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); + m_view->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff); m_view->setScene(m_scene); m_chart = new QChart(); m_scene->addItem(m_chart);