Examining the source of witty, I have found that using
wApp->domRoot()->find() method instead of root()->find() solve my
problem.

On Thu, 2011-05-05 at 15:23 +0200, Gabor E. Tusnady wrote:
> Adding root()->addWidget( popup ); does not solve the problem, as I got
> a "WContainerWidget::addWidget(): reparenting widget" Warning, and the
> program makes core dump on exit.
> 
> What is the correct solution to find WPopupItem?
> 
> Thanks,
> Gabor
> 
> On Thu, 2011-05-05 at 15:13 +0200, Gabor E. Tusnady wrote:
> > Dear witty guys,
> > 
> > I would like to connect something to a WPopupMenuItem.triggered signal
> > somewhere else than it was created. However, I cannot do this, because
> > the root()->find() method cannot find the menuitem. Example code is
> > attached.
> > 
> > Thanks,
> > Gabor
> > ------------------------------------------------------------------------------
> > WhatsUp Gold - Download Free Network Management Software
> > The most intuitive, comprehensive, and cost-effective network 
> > management toolset available today.  Delivers lowest initial 
> > acquisition cost and overall TCO of any competing solution.
> > http://p.sf.net/sfu/whatsupgold-sd
> > _______________________________________________ witty-interest mailing list 
> > [email protected] 
> > https://lists.sourceforge.net/lists/listinfo/witty-interest
> 
> 
> 
> ------------------------------------------------------------------------------
> WhatsUp Gold - Download Free Network Management Software
> The most intuitive, comprehensive, and cost-effective network 
> management toolset available today.  Delivers lowest initial 
> acquisition cost and overall TCO of any competing solution.
> http://p.sf.net/sfu/whatsupgold-sd
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest



------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to