Am Montag, 5. Mai 2008 14:22:50 schrieb Dennis Schridde:
> Am Sonntag, 4. Mai 2008 23:49:57 schrieb Freddie Witherden:
> > The problem I am having is how a widget should tell its parent where
> > it wants to be? Should it be relative to other widgets? Should it be
> > relative to a side (north, east, south, west)?
>
> My proposal is "stolen" from Qt: "layouts" and ~"hints".
>
> ~Hints:
> wdg1 = newWidget();
> wdg1->setMinimumSize( 0, 0 );
> wdg1->setMaximumSize( 1, 1 );
> wdg1->setDefaultSize( 0.5, 0.5 );
If we don't *need* minimumSize and maximumSize, we could also go with just a 
sizeHint, which is always choosen. If it does not fit -> error(in debug 
mode), do-not-display(in release mode).
Then later we can still add dynamic/automatic resizing capabilities.

My assumption is that dynamic resizing is mostly not needed. Possibly just for 
translated strings.

--Dennis

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Warzone-dev mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-dev

Reply via email to