Originally Posted by
wysota
So why are you using the NoSystemBackground attribute?
I need to make my widget glass-styled (windows 7), and for that I use this code:
void dUpload::show( Qt::WindowFlags flags )
{
setWindowFlags( flags );
//setAttribute(Qt::WA_NoSystemBackground, true); // 1
setAttribute(Qt::WA_TranslucentBackground, true); // 2
if ( QtWin::isCompositionEnabled() )
QtWin::extendFrameIntoClientArea( this );
show();
}
void dUpload::show( Qt::WindowFlags flags )
{
setWindowFlags( flags );
//setAttribute(Qt::WA_NoSystemBackground, true); // 1
setAttribute(Qt::WA_TranslucentBackground, true); // 2
if ( QtWin::isCompositionEnabled() )
QtWin::extendFrameIntoClientArea( this );
show();
}
To copy to clipboard, switch view to plain text mode
1 and 2 are equal, i.e. widget will be glassed, but not repainted.
UPD: screenshot when it doesn't repaint:
Bookmarks