Honour QSizePolicy::Fixed too
Some widgets, for example QPushButton, instead of having an explicit max size, they communicate the need for a max size through their size policy
This commit is contained in:
@@ -226,6 +226,7 @@ void DockWidgetBase::setWidget(QWidget *w)
|
||||
qCDebug(addwidget) << Q_FUNC_INFO << w;
|
||||
|
||||
d->widget = w;
|
||||
setSizePolicy(w->sizePolicy());
|
||||
Q_EMIT widgetChanged(w);
|
||||
setWindowTitle(uniqueName());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user