No it's not a bug, It's just an annoying change of feature. Having a
QWidget has parent doesn't mean you can be attach to the parent using
it's layout automagically.
Now you have to explicitely add the widget to the layout.

Maybe it's one off the reason that made this code unreadable at first.
Should I commit my patch even if incomplete ?

Michel

2006/10/27, Matt Rogers <[EMAIL PROTECTED]>:
> On Friday 27 October 2006 01:33, Michel Hermier wrote:
> > Arrff, seems I squashed the bug locally with few changes, but it seems
> > there is a problem within Qt.
> >
> > In this context:
> >    Widget *w = new Widget();
> >    Layout *l = new Layout(w);
> >
> > Doing:
> >    new Widget(w);
> >
> > seems not equivalent to do:
> >    l->addWidget(new Widget());
> >
> > Anyway this file needs to be cleanned I think, too much children
> > object knowing and changing it's parent data, making it really hard to
> > understand ...
> >
> > Cheers,
> >    Michel
>
> If you think it's a bug, you should send a description along with your test
> case to qt-bugs and see what they say.
> --
> Matt
> _______________________________________________
> kopete-devel mailing list
> [email protected]
> https://mail.kde.org/mailman/listinfo/kopete-devel
>
_______________________________________________
kopete-devel mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kopete-devel

Reply via email to