[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:       Espen Sand <espen.sand () neo ! no>
Date:       1999-11-17 10:54:54
[Download RAW message or body]

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?

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?


-- 
Espen Sand

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

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