i have similar situation, i delegate the funtions as follow.
thing to do in the QGraphicsScene
- Save / load plot
- create the plot
things to do in the QGraphicsView
- zooming and affine tranformations
- management of items selection
- printing plot.
printing can be done in the scene or the view. only try to be consistent in the assigment.
try not print all plot in the scene and print current selection in views.
QMatrixis obsolete, QTransform is the recommended class to tranformation. QGraphicsView have function has QMatrix based function, but is prefered using the QTransform version. intead of matrix() use transform().
Bookmarks