Doesn't DotPaintDevice have to inherit QPaintDevice?