You can add your scribbling as items to the scene. You'd have to do it when subclassing QWidget too, just without any dedicated infrastructure.
And how would your paintEvent() for the widget look like?I was going to make a class derived from QWidget (also using QImage for loading images), to make me a drawing canvas Widget, then put that in the scene and rotate it with a view. I saw this canvas approach in the Scribble and Tablet examples that comes with Qt.






Reply With Quote
Bookmarks