It appears that QLayout doesn't update sizeHint() any time a new item is added. Instead it seems like it differs it to some future time. I realize this by adding some items, checking sizeHint of the layout and seeing that it doesn't change.
I need a way to get the sizeHint immediately after adding several items to the layout. This is part of a system where a user selects several widgets and then the new window size is the preferred size of the layout. The user can however adjust the size later so I can't just forcibly use the size policy system.
Any ideas on how to get the proper sizeHint from QLayout immediately after adding several items? Calling "update" on it doesn't appear to do it.
Bookmarks