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

List:       kde-devel
Subject:    Re: resizing a KTMainWindow
From:       cs () axys ! de
Date:       1999-11-29 14:37:09
[Download RAW message or body]

On Sat, Nov 27, 1999 at 12:31:37PM +0100, Antonio Larrosa wrote:
> cs@axys.de wrote:
> >
> > Sounds like you are not using layout management. For a simple layout
> > that's ok, but for anything that contains more than 5 widgets,
> > esp. nested stuff, you should consider using QLayout and friends. It
> > will make your like so much easier. You simply need to specify min/max
> > height/width for those widgets that matter (typically the deeply
> > nested ones) and layout management will do this automagically for you.
> >
>
> A bit slow I would say (altought it also may be that I'm using a
> too complex theme for my system).

I'm looking already into optimizing the layout manager, but complexe
themes are quite CPU hungry.

> > I will check on monday if the ktmlayout code respects the 'hidden'
> > attribute properly. But regardsless of whether there is a bug in there
> > or not, have a look at the geometry management section of the Qt
> > manual.
> >
>
> It does work well. I use it to hide the volume bar in kmid.

Thanks, I've checked the code again. The hidden attribute for all bars
is respected. But it is necessary to call KTMainWindow::updateRects()
whenever any of the bars are un-/hidden.

Chris

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

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