Hey Francesco,

2011/8/4 Francesco Basile <[email protected]>:
> I've encountered a failing assert running this code
>
> #include <Wt/Test/WTestEnvironment>
> #include <Wt/WApplication>
> #include <Wt/WContainerWidget>
> #include <Wt/WTabWidget>
>
> int main() {
>   const Wt::Test::WTestEnvironment myEnv;
>   Wt::WApplication myApp(myEnv);
>
>   Wt::WContainerWidget* myMain(new Wt::WContainerWidget(myApp.root()));
>   Wt::WContainerWidget* mySon(new Wt::WContainerWidget(myMain));
>   Wt::WTabWidget* myTab(new Wt::WTabWidget(myMain));
>   myTab->addTab(mySon, "");
> }
>
> Is there something wrong in this code?

Not actually. the myMain widget would need to be reparented, but that
should go well. I've fixed this in my local git copy.

Regards,
koen

------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to