1. Create a top level QWidget
2. Make it translucent & frameless:
3. Insert your MainWindow into that widget. Left some margins for shadow (5-15 px)
4. Add QGraphicsDropShadowEffect to MainWindow:
-
QGraphicsDropShadowEffect *wndShadow = newQGraphicsDropShadowEffect ;
-
wndShadow -> setBlurRadius ( 9.0 ) ;
-
wndShadow -> setOffset ( 4.0 ) ;
-
mainWindow -> setGraphicsEffect (wndShadow ) ;
.zip with some examples [docs.google.com]
http://qt-project.org/forums/viewthread/21548