[PyKDE] QComboBox question...
guineapig at pi.be
Wed Nov 5 12:59:01 GMT 2003
Tnx for the response... I'm using the pyqtdoc from thekompany wich is a
translation of the trolltech-docs if I'm not mistaken. I can't find a
clear answer on this, maybe I'm overlooking something ?
Roland Schulz wrote:
>-----BEGIN PGP SIGNED MESSAGE-----
>On Wednesday 05 November 2003 11:52, GuineaPig wrote:
>>I'm new to pyqt and I'm having a question about QComboBox. I have one
>>on a form that I would like to populate with data from a db-table. The
>>table is very simple, it has only two columns, an id and a description.
>>I would like to add the descriptions as items to the combobox with the
>>id as index. (Something like: self.cmbSearch.insertItem(description,
>>id)). But I'm getting 'index out of range' errors. Could this be
>>because the indexes need to be in consecutive order (and the series of
>>id's isn't) ? I can't find info on this in the pyqt-documentation...
>For this kind of question look at the trolltech qt docs. There are MUCH more
>detailed. (I don't know it out of my head and would have to look it up, too.)
>If you don't find it please mail again.
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)
>-----END PGP SIGNATURE-----
More information about the PyQt