Click to See Complete Forum and Search --> : PyQt QComboBox Trouble


nko
09-02-2004, 04:24 PM
I've got a little app I made in QT Designer. All it does is take the values you enter in to the fields and insert it in to a database... or so I hope it'll do some time later today!

When you click the "add data to the database" button, it signals a slot that puts all the entered info in to a big long SQL statement (which is a big string). Then, it executes that SQL command... but in practice, it gets to the part where I'm trying to get the value the user has selected from a combo box, then crashes, saying:

insufficient number of arguments to QComboBox.text()

I didn't supply any arguments, but according to this page (http://doc.trolltech.com/3.1/qcombobox.html#currentItem-prop), I don't think I need to supply an argument. By the way, this is in PyQt. Can anyone point me in the right direction? Thanks!

nko
09-02-2004, 04:53 PM
Mod me down... I hate these sorts of things! Turned out to be a typo. ****!!!!