Thank you both.
I'm trying to go the way spud describes.
in constructor (I need to construct it on the stack, else cannot set width / height):
image = new QPixmap(400, 400);
To copy to clipboard, switch view to plain text mode
in frame()
void Girl::frame()
{
image->fill(Qt::red);
setMask(image->createMaskFromColor(Qt::black, Qt::MaskOutColor));
}
void Girl::frame()
{
image->fill(Qt::red);
setMask(image->createMaskFromColor(Qt::black, Qt::MaskOutColor));
}
To copy to clipboard, switch view to plain text mode
in paintEvent()
{
painter.
drawPixmap(QPoint(0,
0),
*image
);
}
void Girl::paintEvent(QPaintEvent *)
{
QPainter painter(this);
painter.drawPixmap(QPoint(0, 0), *image);
}
To copy to clipboard, switch view to plain text mode
Program crashes with segmentation fault. Not a smooth ride yet. 
p.s. the pixeldata comes from a run length encoded file and is presented in vertical lines of 1 pixel width each which than can be put on the pixmap with drawLine().
Bookmarks