- If the window has a sizer then it is used to calculate the best size.
- Otherwise if the window has layout constraints then that is used to calculate the best size.
- Otherwise if the window has children then the best size is set to be large enough to show all the children.
- Otherwise if there are no children then the window's min size will be used for the best size.
- Otherwise if there is no min size set, then the current size is used for the best size.
+ -# If the window has a sizer then it is used to calculate the best size.
+ -# Otherwise if the window has layout constraints then that is used to calculate the best size.
+ -# Otherwise if the window has children then the best size is set to be large enough to show all the children.
+ -# Otherwise if there are no children then the window's min size will be used for the best size.
+ -# Otherwise if there is no min size set, then the current size is used for the best size.