fix background color
This commit is contained in:
@@ -37,6 +37,7 @@ public:
|
||||
QMdiArea( parent ),
|
||||
m_pixmapLogo( ":/images/playuver-backgroud-logo.png" )
|
||||
{
|
||||
setBackgroundRole( QPalette::Background );
|
||||
}
|
||||
protected:
|
||||
void paintEvent( QPaintEvent *event )
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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() ) );
|
||||
|
||||
Reference in New Issue
Block a user