no, it is not connected with parent widget.
look at this code:
QSimpleRichText rich_text("<img src=image.jpg border=0>", app.font());
QRect rect
(0,
0, rich_text.
widthUsed(), rich_text.
height());
buffer.fill(Qt::red);
rich_text.draw(&p, 0, 0, rect, app.palette().active());
p.end();
label->setPixmap(buffer);
label->show();
QSimpleRichText rich_text("<img src=image.jpg border=0>", app.font());
QRect rect(0, 0, rich_text.widthUsed(), rich_text.height());
QPixmap buffer(rect.size());
buffer.fill(Qt::red);
QPainter p( &buffer );
rich_text.draw(&p, 0, 0, rect, app.palette().active());
p.end();
QLabel *label = new QLabel(0);
label->setPixmap(buffer);
label->show();
To copy to clipboard, switch view to plain text mode
This "image.jpg" is an green image 150px*150px.
Now look at results:

red borders are QSimpleRichText's margins.
Bookmarks