I need to design and develop a kind of graphics piece of software, which can edit customized files containing graphical elements, etc.
I expect the piece of software to contain many documents thanks to the QMdiArea
which is actually my central widget inside of my QMainWindow
.
For each document, I will need both a QGraphicsView
and a QGraphicsScene
as well, since they work together.
Now, my question is, should I inherit QGraphicsView
with a protected/private member to its own QGraphicsScene
, or should I create a class which inherits QWidget
and handles instances of QGraphicsView
/ QGraphicsScene
?
Or is there any solution left that I didn't think about?