[Panel-devel] boxlayout patch

Aaron J. Seigo aseigo at kde.org
Fri Oct 12 15:51:05 CEST 2007


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20071012/afce1ca5/attachment.pgp 


More information about the Panel-devel mailing list