Hi! I try to render widget's children into pixmap. Code:
//QWidget this;QPixmap wpix
wpix.fill(Qt::transparent);
this
->render
(&wpix,
QPoint(0,
0),
QRect(0,
0,
640,
1024), DrawChildren
);
//QWidget this;QPixmap wpix
wpix=QPixmap(this->size());
wpix.fill(Qt::transparent);
this->render(&wpix,QPoint(0,0),QRect(0,0,640,1024), DrawChildren);
To copy to clipboard, switch view to plain text mode
But in pixmap I get rendered widget's children and widget itself. Even with DrawWindowBackround flag. What could be wrong?
Bookmarks