>Hi,
>
>   While browsing through LyX frontend code I noticed that
>GuiWorkArea has two constructors and neither seems to be passing
>any QWidget *parent to QAbstractScrollArea that GuiWorkArea inherits.
>Is the widget parenting being done somewhere else or does Qt4
>guarantee some kind of automagic parenting?
>

The parent gets set automatically when a GuiWorkArea is added to the
TabWorkArea.

TabWorkArea::addWorkArea
QTabWidget::addTab
QTabbar::insertTab
QStackedLayout::addWidget
Qlayout::addChildWidget
{
...
        w->setParent(mw);
...
}


>Thanks,
>Manoj

Vincent

Reply via email to