I have a four-panel QGridLayout and want to reserve one of the panels for a miniature view of other widgets like 3D views. The specific widget which I want to show inside QGridLayout is to be specified dynamically.
However, when I pass a widget to QGridLayout via QGridLayout::addWidget
, the widget disappears from where it was before. Obviously, this is a policy of QGridLayout.
Is there a workaround to avoid this? Can I tell QGridLayout to retain a copy of a specific widget I am adding? Is there a way to pass a copy or an image of the widget? I just don't have a clue at this point.
Thanks in advance!