So here is the jist of the example code
Qt Code:
  1. QString fn="tux.png";
  2.  
  3. QImage img( fn );
  4. p.convertFromImage( img );
  5. if ( !p.mask() )
  6. if ( img.hasAlphaBuffer() ) {
  7. QBitmap bm;
  8. bm = img.createAlphaMask();
  9. p.setMask( bm );
  10. } else {
  11. QBitmap bm;
  12. bm = img.createHeuristicMask();
  13. p.setMask( bm );
  14. }
  15. MoveMe w(0,0,Qt::WStyle_Customize|Qt::WStyle_NoBorder);
  16. w.setBackgroundPixmap( p );
To copy to clipboard, switch view to plain text mode 

And here is my updated 4.2 version:
Qt Code:
  1. QString sImageFile = "C:/Documents and Settings/bpetty/My Documents/My Pictures/face.JPG";
  2.  
  3. QImage BGImage(sImageFile);
  4. QPixmap BGPixmap;
  5. QPalette BGPalette;
  6. QBitmap BGBitmap;
  7.  
  8. BGPixmap.fromImage(BGImage); // Create Image
  9. if (!BGPixmap.mask())
  10. {
  11. if (BGImage.hasAlphaChannel())
  12. {
  13. BGImage = BGImage.createAlphaMask();
  14. } else {
  15. BGImage = BGImage.createHeuristicMask();
  16. }
  17.  
  18. BGBitmap.fromImage(BGImage);
  19. BGPixmap.setMask(BGBitmap);
  20. }
  21.  
  22. BGPalette.setBrush(this->backgroundRole(), QBrush(BGPixmap)); // Create Palette
  23.  
  24. this->setFixedSize(BGImage.width(), BGImage.height()); // Set Window Size
  25.  
  26. this->setPalette(BGPalette); // Set Background Image
To copy to clipboard, switch view to plain text mode 

My code is displaying a black box... not the image. Am I doing something wrong? Is there an easier way to set the background of a dialog widget to an image?

I am also doing this:
Qt Code:
  1. CINWaitSplash(QWidget * parent = 0, Qt::WindowFlags f = Qt::SplashScreen|Qt::WindowStaysOnTopHint);
To copy to clipboard, switch view to plain text mode 

Could any of that be effecting it?