Hi! I'm trying to overlap a transparent widget to a QGraphicsView. I created it with:

Qt Code:
  1. MyWidget* widget = new MyWidget(this);
  2. widget->show();
To copy to clipboard, switch view to plain text mode 

and I noticed it results not to be semitransparent. If, instead, I create it in a subclass of the QGraphicsScene placed in the QGraphicsView whose parent is my QMainWindow, like:

Qt Code:
  1. MyWidget* widget = new MyWidget((QWidget*)this->parent());
  2. widget->show();
To copy to clipboard, switch view to plain text mode 

I get that it is semitransparent. Why?
Thanks!