Sure, this is basically my code.

Qt Code:
  1. QPixmap pixmap("transparentImage.png");
  2. QImage image("transparentImage.png");
  3. QBitmap bt();
  4.  
  5.  
  6.  
  7. //Create the mask
  8. image = image.createAlphaMask(Qt::AutoColor);
  9.  
  10.  
  11. bt= QBitmap::fromImage(image,Qt::AutoColor);
  12. pixmap.setMask(bt);
  13.  
  14.  
  15.  
  16. //Aply the mask to the widget
  17. _mainWidget->setMask(pixmap.mask());
To copy to clipboard, switch view to plain text mode 

The result in qt 4.1 is that the mask is applied to the mainwidget and the transparent pixel in the image come clipped.
The result in qt 4.2 is that the transparent pixels in the image are black, and looks like the mask is not been applied

Any help plz
THanks
CJC