From kde-devel Mon May 28 08:56:53 2001 From: Kevin Krammer Date: Mon, 28 May 2001 08:56:53 +0000 To: kde-devel Subject: Re: newbie question X-MARC-Message: https://marc.info/?l=kde-devel&m=99104477231099 On Monday, 28. May 2001 00:06 (GMT +0200), Martijn Klingens wrote: > On Sunday 27 May 2001 21:20, Stephan Oehlert wrote: > > Hi > > > > Kevin, this did not work. But if you use > > listView =3D new KListView(this); > > instead of > > KListView* listView =3D new KListView(); > > then everything is fine. Do you know why? > > Because leaving out the parent would give a widget a parent of 0 (NULL)= =2E > The result is that the widget gets its own window (and only after show(= ) > has been manually called). Yes, sorry about that. I should be more careful when giving examples. bye, Kevin --=20 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Kevin Krammer Developer at the Kmud Project http://www.kmud.de/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<