[PyQt] Combobox with Multiple Columns

Willem Buitendyk willem at pcfish.ca
Tue May 19 04:28:59 BST 2015


Newbie here.

I’m trying to find information on populating a QComobox with multiple columns from a datasource.  I can currently populate using: 

setModelColumn(self.model.fieldIndex(“some_field_name”))

I would like to have the combobox display two columns for each row but only return the value in the first column.

Thanks for any help,

Willem





More information about the PyQt mailing list