Can you draw on a QPixmap/ QImage?
I tried the following but it doesn't work:
if ( pixmap.load("myImage.png") ) // load and draw image
p->drawPixmap( 100, 85, pixmap );
QPainter pixPaint
(pixmap
);
// Error: Can't convert from QPixmap to const QPaintDevice . But doesn't QPixmap inherit QPaintDevice??? pixPaint.drawLine(1,5);
QPixmap pixmap;
if ( pixmap.load("myImage.png") ) // load and draw image
p->drawPixmap( 100, 85, pixmap );
QPainter pixPaint(pixmap); // Error: Can't convert from QPixmap to const QPaintDevice . But doesn't QPixmap inherit QPaintDevice???
pixPaint.drawLine(1,5);
To copy to clipboard, switch view to plain text mode
Bookmarks