diff --git a/app/PlaYUVerSubWindowHandle.cpp b/app/PlaYUVerSubWindowHandle.cpp index b407222..7f77840 100644 --- a/app/PlaYUVerSubWindowHandle.cpp +++ b/app/PlaYUVerSubWindowHandle.cpp @@ -37,6 +37,7 @@ public: QMdiArea( parent ), m_pixmapLogo( ":/images/playuver-backgroud-logo.png" ) { + setBackgroundRole( QPalette::Background ); } protected: void paintEvent( QPaintEvent *event ) diff --git a/app/SubWindowHandle.cpp b/app/SubWindowHandle.cpp index 0eb61a4..ea4ac15 100644 --- a/app/SubWindowHandle.cpp +++ b/app/SubWindowHandle.cpp @@ -34,7 +34,12 @@ SubWindowHandle::SubWindowHandle( QWidget * parent, UInt category ) : setParent( parent ); setFocusPolicy( Qt::WheelFocus ); setAttribute( Qt::WA_DeleteOnClose ); - setBackgroundRole( QPalette::Light ); + setBackgroundRole( QPalette::Background ); + QPalette Pal(palette()); + // set black background + //Pal.setColor(QPalette::Background, Qt::white); + //setPalette(Pal); + setAutoFillBackground( true ); setWindowIcon( QIcon( ":/images/playuver.png" ) ); // Create a new scroll area inside the sub-window diff --git a/app/plaYUVerApp.cpp b/app/plaYUVerApp.cpp index e727674..d6335ce 100644 --- a/app/plaYUVerApp.cpp +++ b/app/plaYUVerApp.cpp @@ -70,6 +70,7 @@ plaYUVerApp::plaYUVerApp() setUnifiedTitleAndToolBarOnMac( true ); setCentralWidget( m_pcWindowHandle ); setAcceptDrops( true ); + setBackgroundRole( QPalette::Background ); connect( m_pcWindowHandle, SIGNAL( windowActivated() ), this, SLOT( update() ) ); connect( m_pcWindowHandle, SIGNAL( changed() ), this, SLOT( update() ) );