Thanks,
Here is my code for my "settable widget" :
//=============================================================================
//=============================================================================
void ZeSettableWidget
::setWidget(QWidget & widget
) {
ClearWidget();
mWidget = &widget;
mLayout.addWidget(mWidget);
mWidget->show();
mLayout.invalidate();
}
//=============================================================================
//=============================================================================
void ZeSettableWidget::setWidget(QWidget & widget)
{
ClearWidget();
mWidget = &widget;
mLayout.addWidget(mWidget);
mWidget->show();
mLayout.invalidate();
}
To copy to clipboard, switch view to plain text mode
Doesn't seem to work, the layout doesn't shrink back to the smaller widget size.
Bookmarks