hi,

sorry for bother all of you.
i got it now. (all i had to do was read carefully... ;)
it works like this:

Ext::TabWidget *tb = new TabWidget();
WContainerWidget *panel_widget = new WContainerWidget();
Ext::Panel *panel = new Ext::Panel();

panel_widget->setLayout(gLayout_, AlignTop);
panel->setLayout(new Wt::WFitLayout());
panel->layout()->addWidget(panel_widget);
tb->addTab(panel);


thanx for listening,
johannes.

> hi,
> 
> how can i nest a layout inside a layout (e.g. WFitLayout)?
> i had a look at the layout classes and there only WGridLayout and
>  WBoxLayout provide a addLayout method.
> 
> i tried it that way
> panel->setLayout(new Wt::WFitLayout());
> panel->layout()->addItem(gLayout_);
> 
> or
> 
> fitlayout->addItem(gLayout_);
> panel->addItem(fitlayout)
> 
> (where gLayout_ is a WGridLayout
> and fitlayout is a WFitLayout)
> 
> getting the assertion i described in my mail before
> 
> thanx,
> johannes.
> 
> ---------------------------------------------------------------------------
> --- Return on Information:
> Google Enterprise Search pays you back
> Get the facts.
> http://p.sf.net/sfu/google-dev2dev
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
> 

------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to