PDA

View Full Version : stylesheets and trasparent background



godlike_panos
28th June 2010, 10:19
I have a style sheet that practically overrides everything. In a certain situation I have a QGroupBox with a gradient background. Inside that QGroupBox I place a QScrollArea. The problem is that the QScrollArea cannot be transparent. I've tried to set all the backgrounds to none but it takes the default QWidget background.


QScrollArea {
background: none;
}

QScrollArea > QWidget {
background: none;
}

QScrollArea > QWidget > QWidget {
background: none;
}

4847

Any ideas?

MorrisLiang
28th June 2010, 13:05
Try this:

QWidget{
background: rgba(0,0,0,0);
border: none;
}

Sometimes it shows the border, if you don't specifically set the border to none