I imagine that it must have something to do with when exactly Qt determines the size of your docked widget. In the former case, it clearly determines the size before any item is added to the list, while in the latter case it does it after the items have been added. Interesting... and I am not sure how you could address that issue. (I am relatively new to Qt, sorry.)
Bookmarks