@@ -65,11 +65,8 QChartView::~QChartView() | |||||
65 | */ |
|
65 | */ | |
66 | void QChartView::resizeEvent(QResizeEvent *event) |
|
66 | void QChartView::resizeEvent(QResizeEvent *event) | |
67 | { |
|
67 | { | |
68 | // If the scene rect is the size of the view, you will get scrolling effect at least on OSX; |
|
|||
69 | // i.e. you are able to move the chart inside the view a couple of pixels by mouse flicking |
|
|||
70 | m_scene->setSceneRect(0, 0, size().width() - 2, size().height() - 2); |
|
|||
71 | m_chart->resize(size()); |
|
68 | m_chart->resize(size()); | |
72 |
Q |
|
69 | QGraphicsView::resizeEvent(event); | |
73 | } |
|
70 | } | |
74 |
|
71 | |||
75 | /*! |
|
72 | /*! |
General Comments 0
You need to be logged in to leave comments.
Login now