##// END OF EJS Templates
Changes scrollbar policy in qchartwidget
Michal Klocek -
r46:95744bf471a1
parent child
Show More
@@ -16,6 +16,8 public:
16 {
16 {
17 m_scene = new QGraphicsScene();
17 m_scene = new QGraphicsScene();
18 m_view = new QGraphicsView(parent);
18 m_view = new QGraphicsView(parent);
19 m_view->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
20 m_view->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
19 m_view->setScene(m_scene);
21 m_view->setScene(m_scene);
20 m_chart = new QChart();
22 m_chart = new QChart();
21 m_scene->addItem(m_chart);
23 m_scene->addItem(m_chart);
General Comments 0
You need to be logged in to leave comments. Login now