JonnyJP
9th February 2012, 18:09
Hi, just a quick question.
If I set my QFrame or QDialog stylesheet to include
background-color:rgba(0,0,0,100); and those objects have a parent, they are rendered with a semi-transparent black background which is fine.
If I set my QWidget to have that stylesheet then the background is opaque.
So I'm just wondering:
What properties do those classes have that allows the alpha channel to work?
Why is a parent needed for transparency?
I'm not struggling with the code, just wondering that's all
If I set my QFrame or QDialog stylesheet to include
background-color:rgba(0,0,0,100); and those objects have a parent, they are rendered with a semi-transparent black background which is fine.
If I set my QWidget to have that stylesheet then the background is opaque.
So I'm just wondering:
What properties do those classes have that allows the alpha channel to work?
Why is a parent needed for transparency?
I'm not struggling with the code, just wondering that's all