Hi! I try to render widget's children into pixmap. Code:

Qt Code:
  1. //QWidget this;QPixmap wpix
  2. wpix=QPixmap(this->size());
  3. wpix.fill(Qt::transparent);
  4. 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?