Hi,
No you don't need to sublclass the tab page because you can place a QGraphicsView in that tab. I am assuming that you are using QTCreator or QT Designer to create your GUIs. Using either of both you can place a QGraphicsView in that page.If I use the QGraphicsView do I need to subclass the tab page too?
QGraphicsView is a widget that shows an drawing scene (sometimes called canvas). Each scene can have multiple graphical items (boxes, lines, polygons, etc). The QPainter class performs low-level painting on widgets and other paint devices. If you can to create you a widget from scratch (Analog clock example) then you need painter. But if you want to draw boxes, lines, polygons, etc use a QGraphicsView + QGraphicsScene.What is the difference between QPainter and QGraphicsView?
I recommend you to look at the examples: Diagram Scene also look at this thread: QGraphicsRectItem-with-list-of-QStrings
Carlos
Bookmarks