Hi! I'm trying to overlap a transparent widget to a QGraphicsView. I created it with:
MyWidget* widget = new MyWidget(this);
widget->show();
MyWidget* widget = new MyWidget(this);
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:
MyWidget
* widget
= new MyWidget
((QWidget*)this
->parent
());
widget->show();
MyWidget* widget = new MyWidget((QWidget*)this->parent());
widget->show();
To copy to clipboard, switch view to plain text mode
I get that it is semitransparent. Why?
Thanks!
Bookmarks