void QBoxLayout::insertLayout(int index, QLayout *layout, int stretch){ Q_D(QBoxLayout); addChildLayout(layout); if (index < 0) // append index = d->list.count(); QBoxLayoutItem *it = new QBoxLayoutItem(layout, stretch); d->list.insert(index, it); invalidate();}