Hey,

A fellow student is doing the guy of our application and he has encountered a 
strange issue. Since he hasn’t got an subscription to this mailing list yet, I 
asked him to mail me and Id forward the question:

> Hi,
> 
> I have a Wt program that I'm working on an I have an error.
> The problem happens when I'm trying to add a widget in a boxlayout that is in 
> a boxlayout, that’s also in a box layout(3 times nested).
> 
> The error is "WContatinerWidget: addWidget(): reparenting widget".
> 
> I use this code to make my containers and boxes.
> WContainerWidget *container = new WContainerWidget();
> WHBoxLayout *box = new WHBoxLayout();
> container->setLayout(box);
> 
> and I add my widgets and nested containers to the 'box'.
> 
> Another problem when I get when Im nested is that I cant use class members of 
> WLineEdit and WV(/H)BoxLayout without getting the same error. When I make 
> them in the same scope as I declare the container and box the error 
> disappears. 
> 
> Using class members in non-nested containers gives me no error.
> 
> Whats wrong? 


Regards,
Tor

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to