[Panel-devel] boxlayout patch

Robert Knight robertknight at gmail.com
Sat Oct 13 14:23:52 CEST 2007


> because it is different than the QWidget layouts. so
> before we go making wrong headed assumptions, let me go gather some hard
> data. i'll be seeing the Trolls in person again on monday.

Please do.  I didn't see it in the snapshots last time I looked, if it
isn't already there, could you find out when it is likely to appear?

On 12/10/2007, Aaron J. Seigo <aseigo at kde.org> wrote:
> On Friday 12 October 2007, Robert Knight wrote:
> > > Example: Three widgets. If sizeHint returns 20, 30, 50 It tires to give
> > > 20%, 30%, 50% from space available. Now it gives 33% for each.
> >
> > That is not how sizeHint() is intended to be used (in Qt's layout
> > system).  In Qt I think you would do this by assigning stretch factors
> > to the various items in the layout to adjust the ratio by which space
> > is divided between items.
> >
> > If you want a generic solution for the Plasma libs then implementing
> > stretch factor support would be a better solution.  Otherwise keep
> > your modified BoxLayout private as part of your System Monitor applet.
>
> i'm not happy with either approach, tbh. (being different than Qt's layouts
> or
> not doing what we'd like it to do).
>
> i'll find out more details about the layout system as it will be in qt 4.4's
> QGraphicsView stuff, because it is different than the QWidget layouts. so
> before we go making wrong headed assumptions, let me go gather some hard
> data. i'll be seeing the Trolls in person again on monday.
>
> (note, we should be getting support for model/view in QGraphicsView for qt
> 4.4
> as well =))
>
> --
> Aaron J. Seigo
> humru othro a kohnu se
> GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43
>
> KDE core developer sponsored by Trolltech
>


More information about the Panel-devel mailing list