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

List:       kde-core-devel
Subject:    Re: KMix major changes: Your help is needed
From:       Matthias Ettrich <ettrich () troll ! no>
Date:       1999-11-17 13:36:23
[Download RAW message or body]

On Wed, 17 Nov 1999, Espen Sand wrote:
> On tir, 16 nov 1999, Matthias Ettrich wrote:
> >
> >Anyway, for real fancy stuff (whatever that might be), simply use a
> >QLayoutIterator, iterate until you found your widget and call takeItem() on the
> >iterator:
> >
> >	QLayoutIterator it = yourLayout->iterator();
> >	QLayoutItem *item;
> >	while ( (item = it.current() ) ) {
> >	    if ( item ==theThingYouDoNotWantToHaveHereAnyLonger) { 	
> >		it.takeCurrent(); 
> >		iyourLayout->invalidate(); 
> >		break;
> >	    }
> >	}
> >
> >
> 
> 1. Since the layout is invalidated,  when does it become valid again?

You can force that with activate(), for example.

> 
> 2. I assume this is more efficient than just (from a widget that has a layout)
> doing
> 
> delete layout();
> <makeNewLayout>
> <remove the required widget(s)>
> <add remaining widgets to new layout once again>
> 
> right?

In that case, why not simply destroy or hide the widgets you don't want anymore?


Matthias

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

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