Thank for ur quick reply zen,

i need further clarification...

I have a QDialog.ui ...in that stylesheet property for the QFrame i was set

Qt Code:
  1. {
  2. background-image: url(:/images/messagebox.png) no-repeat;
  3. }
To copy to clipboard, switch view to plain text mode 

and in my QDialog constructor

Qt Code:
  1. QPixmap pixmap(":/images/messagebox.png");
  2.  
  3. ui->frame->setMask(pixmap.mask());
  4. QRegion reg(frameGeometry());
  5. reg-=QRegion(geometry());
  6. reg+=childrenRegion();
  7. setMask(reg);
To copy to clipboard, switch view to plain text mode 


but i got an error

dialog.cpp: In constructor ‘Dialog:ialog(QWidget*)’:
dialog.cpp:12: error: invalid use of incomplete type ‘struct QBitmap’
/opt/qtsdk-2010.05/qt/include/QtGui/qwindowdefs.h:77: error: forward declaration of ‘struct QBitmap’
make: *** [dialog.o] Error 1