[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: newbie question
From:       Kevin Krammer <kevin.krammer () gmx ! at>
Date:       2001-05-28 8:56:53
[Download RAW message or body]

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 = new KListView(this);
> > instead of
> > KListView* listView = new KListView();
> > then everything is fine. Do you know why?
>
> Because leaving out the parent would give a widget a parent of 0 (NULL).
> 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

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kevin Krammer <kevin.krammer@gmx.at>
Developer at the Kmud Project http://www.kmud.de/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic