OK so every Layout is different, but all QtGui Layouts will use the following widget properties in determining their position on the screen: sizeHint, minimumSize, maximumSize, minimumSizeHint, sizePolicy. This section of the documentation alludes to a common algorithm or set of semantices for these properties http://doc.qt.nokia.com/4.7/layout.h...ts-to-a-layout. However 1. It must be innacurate because it cant apply to more complicated layouts? 2. I cant help but think it is innaccurate any way because it states:
This cannot be correct because elsewhere in the documentation it is stated sizePolicy reinterprets the meaning of size hint (http://doc.qt.nokia.com/4.7/qsizepolicy.html#details); THERE IS NO SCOPE for reinterpreting anything in "will initially be allocated" - the widget is allocated a size not a min/max size and that size must, be according to the above statement, the size hint. So the statement should be:1. All the widgets will initially be allocated an amount of space in accordance with their QWidget::sizePolicy() and QWidget::sizeHint().
And then it should explain what happens if a widget has no size hint - which is possible (http://doc.qt.nokia.com/4.7/qwidget.html#sizeHint-prop).1. All the widgets will initially be allocated an amount of space in accordance with their QWidget::sizeHint().
Anyway I was wondering if anyone could point me in the direction of a more rigorous description of the layot algorithms - short of the source.
Thanks.
Bookmarks