Luc4
24th March 2010, 09:40
Hi! I'm trying to overlap a transparent widget to a QGraphicsView. I created it with:
MyWidget* widget = new MyWidget(this);
widget->show();
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:
MyWidget* widget = new MyWidget((QWidget*)this->parent());
widget->show();
I get that it is semitransparent. Why?
Thanks!
MyWidget* widget = new MyWidget(this);
widget->show();
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:
MyWidget* widget = new MyWidget((QWidget*)this->parent());
widget->show();
I get that it is semitransparent. Why?
Thanks!