From: jeroen <je...@fo...> - 2001-11-18 17:45:00
|
On Sunday 18 November 2001 09:34, you wrote: > Hi ! > > Ok, that explains it, so what do I do to fix it, would a call to layout() > after show() fix it then ?, or should I use layout() on the splitter widget > ? No, simply give the subpanel the desired size when you call show [depending on how big the other panels are, these might have to be made smaller unless the last subpanel can take up the extra slack]. A call to show() would not normally call recalc() [because show() and hide() are themselves often used in layout() implementations and we don't want to risk a recursion], so you may have to call recalc() on the subpanel. In a nutshell: subpanel->setWidth(100); subpanel->show(); subpanel->recalc(); Should be all that's required. regards, Jeroen |