Does QIcon::QIcon( const QPixmap & pixmap ) take ownership of its input parameter, pixmap?
Does QPixmap::setAlphaChannel( const QPixmap & alphaChannel ) take ownership of its input parameter, alphaChannel?

In other words, for ...
Qt Code:
  1. QPixmap * pPixmap;
  2. QBitmap * pBitmap;
  3. QIcon * pIcon;
  4.  
  5. pPixmap = <pointer to image previously read in>;
  6.  
  7. pBitmap = new QBitmap( * pPixmap );
  8.  
  9. P.begin( (QPaintDevice *) pBitmap );
  10. // painting here
  11. P.end();
  12.  
  13. pPixmap->setAlphaChannel( * pBitmap );
  14.  
  15. pIcon = new QIcon( * pPixmap );
  16.  
  17. ...
  18.  
  19. delete pIcon;
To copy to clipboard, switch view to plain text mode 
... does the delete statement also delete the Pixmap and/or the Bitmap?