The QCanvas class is a 2D graphic area upon which QCanvasItem objects exist. Inherits QObject . List of all member functions. The QCanvas class is a 2D graphic area upon which QCanvasItem objects exist. A QCanvas contains any number of QCanvasItem subclassed objects and has any number of QCanvasView widgets observing some part of the canvas.
Items use less memory than widgets.
Finding items in an area is efficient. You can have multiple views of a canvas. Widgets of course offer richer functionality, such as hierarchies, events, layout, etc. Drawing A canvas has a solid background and a foreground. A third option is to use tiles , where the canvas background is a matrix of small images all the same size, each chosen from a defined larger pixmap.