Thanks everyone for their informative replies. I am also confused about whether I should use qwidget or qgraphicsview. I need to zoom, move strokes. I do not really understand why most qt drawing softwares are using qwidget(pencil2D, Krita). Can anybody explain?