Hello,

I have a QComboBox where the size adjust policy is set to 'AdjustToContent'. During execution of my program I add content to this widget. It resizes to fit the content even though there is insufficient space for it to do so. That is, it overlaps with the widget next to it. Resizing the screen causes the QComboBox to shrink. It is now as large as possible without overlapping the next widget. This is the behaviour I would expect.

My question is how to I get it to be 'as large as possible' immediately after adding new content. I've tried calling updateGeometry(), update(), layout()->update(), etc... without any effect. It seems like I need to have the layout recalculate the best size for all widgets, but am unsure of how to do this (I though that was the point of layout()->update()).

Thanks for any and all help.

Cheers,
Donovan