diff --git a/extenders/extenderitem.cpp b/extenders/extenderitem.cpp index b4c4b22a4..1936c862a 100644 --- a/extenders/extenderitem.cpp +++ b/extenders/extenderitem.cpp @@ -517,6 +517,10 @@ void ExtenderItem::setCollapsed(bool collapsed) } else { d->layout->insertItem(1, d->widget); } + QGraphicsWidget *pw = qgraphicsitem_cast(parentItem()); + if (pw) { + pw->resize(pw->effectiveSizeHint(Qt::PreferredSize)); + } } }