QPixmap is a paint device like any other. You can construct an empty pixmap of appropriate size and then use QPainter to paint all three pixmaps on the constructed "buffer" pixmap.
// not sure, but you might need to fill the "buffer" with a transparent brush here
// ..
painter.drawPixmap(pixmap1);
..
painter.drawPixmap(pixmap3);
setMask(buffer.mask());
QPixmap buffer(width, height);
// not sure, but you might need to fill the "buffer" with a transparent brush here
// ..
QPainter painter(&buffer);
painter.drawPixmap(pixmap1);
..
painter.drawPixmap(pixmap3);
setMask(buffer.mask());
To copy to clipboard, switch view to plain text mode
Bookmarks