172void QQuickGroupBox::setLabel(QQuickItem *label)
175 if (d->label == label)
178 QQuickControlPrivate::warnIfCustomizationNotSupported(
this, label, QStringLiteral(
"label"));
180 if (!d->label.isExecuting())
183 const qreal oldImplicitLabelWidth = implicitLabelWidth();
184 const qreal oldImplicitLabelHeight = implicitLabelHeight();
186 d->removeImplicitSizeListener(d->label);
187 QQuickControlPrivate::hideOldItem(d->label);
191 if (!label->parentItem())
192 label->setParentItem(
this);
193 d->addImplicitSizeListener(label);
196 if (!qFuzzyCompare(oldImplicitLabelWidth, implicitLabelWidth()))
197 emit implicitLabelWidthChanged();
198 if (!qFuzzyCompare(oldImplicitLabelHeight, implicitLabelHeight()))
199 emit implicitLabelHeightChanged();
200 if (!d->label.isExecuting())