Sigh, I don't get it, only a black square shows up. Could somebody please help me on my way. Gee this ought to be simple. What's wrong with me. 
image = new QImage(400, 400, QImage::Format_RGB32);
To copy to clipboard, switch view to plain text mode
void Girl::frame()
{
image->fill(Qt::white);
update();
}
void Girl::frame()
{
image->fill(Qt::white);
QPainter painter(image);
painter.drawLine(QPoint(0, 0), QPoint(400, 4400));
update();
}
To copy to clipboard, switch view to plain text mode
{
painter.
drawImage(QPoint(0,
0),
*image
);
}
void Girl::paintEvent(QPaintEvent *)
{
QPainter painter(this);
painter.drawImage(QPoint(0, 0), *image);
}
To copy to clipboard, switch view to plain text mode
Bookmarks