Qt (4.6) online documentation has this to say about QComboBox:
enum SizeAdjustPolicy { AdjustToContents, AdjustToContentsOnFirstShow, AdjustToMinimumContentsLength, AdjustToMinimumContentsLengthWithIcon }
I would suggest
-
ensuring the
SizeAdjustPolicyis actually being used -
setting the enum to
AdjustToContents. As you mention a.uifile I suggest doing that in Designer. Normally there shouldn’t be anything fancy in your constructor at all concerning things you do in Designer.