try this
Qt Code:
  1. ...
  2. pm = QPixmap::grabWidget(parentWidget(), 0, 0, 39, 39);
  3. ...
To copy to clipboard, switch view to plain text mode