Attempting to set QLayout "layout1" on QFrame "frame1", when the QLayout already has a parent
General and Desktop
2
Posts
2
Posters
1.3k
Views
1
Watching
-
I'm getting the above error upon
@
frame1->setLayout(layout1);
@Do I need to unparent layout1, make it an orphan? How?
Thanks./*
I could not find a reference or discussion on this.
There's enough reference and discussion on the similar issue of when the widget (frame1) already has a layout.
That's not the case here.
"frame1" is empty, has no children, no layout.
The problem here is that "layout1" is already set onto some other widget (parent?)
*/