[PyKDE] QComboBox question...

GuineaPig guineapig at pi.be
Wed Nov 5 12:59:01 GMT 2003


Hi,

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 ?

Greetz,
Tom

Roland Schulz wrote:

>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>On Wednesday 05 November 2003 11:52, GuineaPig wrote:
>  
>
>>Hello,
>>
>>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.
>
>regards
>Roland
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)
>
>iD8DBQE/qNzhV/hlvQgMogsRAlalAJ4hCSMwCJawKQHraS/xwOxbjPmMMACeOtfl
>Se9VYvqGHDERa9xL6KOJXYY=
>=4dsU
>-----END PGP SIGNATURE-----
>
>
>  
>





More information about the PyQt mailing list