[PyQt] AutoExpanding Contents QComboBox - Windows

Darryl Wallace darryl.wallace at prosensus.ca
Fri Apr 17 14:31:46 BST 2009

Hello Everyone,

I'm using Windows with Qt4.4.0 and PyQt4.3.3.  I have a QComboBox where 
the contents are wider than the combobox itself.  In Linux, when you 
click on the combobox it expands to the width of the contents.  In 
Windows it cuts the contents off and the view is the same width as the 
the combobox.

Any idea how, in windows, to expand the width of the view of the 
contents when the combobox is clicked?

I've set the flag for the sizeAdjustPolicy to QComboBox.AdjustToContents 
but it still does not work.

Any ideas?

More information about the PyQt mailing list