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

List:       kde-devel
Subject:    Re: Laying out an application
From:       Nathan Toone <nathan () toonetown ! com>
Date:       2005-05-18 17:09:46
Message-ID: 200505181109.46383.nathan () toonetown ! com
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Wednesday 18 May 2005 10:48 am, Kevin Krammer wrote:
> You could use a QWidgetStack on the right side and add/remove "frames".

This sounds like exactly what I want to do - but I have a question about the 
documentation...

from http://doc.trolltech.com/3.3/qwidgetstack.html#removeWidget:
"void QWidgetStack::removeWidget ( QWidget * w ) 
Removes widget w from this stack of widgets. Does not delete w. If w is the 
currently visible widget, no other widget is substituted."

Does this mean that I have to do this:
	//create new frame
	newFrame=new QFrame() 
	...
	oldFrame = stack->visibleWidget();
	stack->addWidget(newFrame);
	stack->raiseWidget(newFrame);
	stack->removeWidget(oldFrame);
	delete oldFrame;
	
-Nathan

[Attachment #5 (application/pgp-signature)]

>> Visit http://mail.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