Hi, just a quick question.

If I set my QFrame or QDialog stylesheet to include
Qt Code:
  1. background-color:rgba(0,0,0,100);
To copy to clipboard, switch view to plain text mode 
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:

  1. What properties do those classes have that allows the alpha channel to work?
  2. Why is a parent needed for transparency?


I'm not struggling with the code, just wondering that's all