No, QWidget inherits QPaintDevice, so the class DotCanvas *is* a QPaintDevice by virtue of multiple inheritance. You will need to pass a pointer or reference to the QPainter used in the paintEvent() to your special paint method.Doesn't DotPaintDevice have to inherit QPaintDevice?
Bookmarks