Quote Originally Posted by spirit View Post
come on man, I've already posted an example, it has all what you want
I don't see it...am I retarded or something ???

The only data methods QItemDelegate has is:

setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index)
setEditorData(QWidget *editor, const QModelIndex &index)

These are all SET something and the combobox in each method is a parameter. It doesn't address my solution. Where's the real combobox ? from what I've read, it doesn't really exist, only when you begin to edit the item it's created.

So, there IS no method to return the combo box index...because there is no real combo box ! (have I answered my own post here ?)

I wrote a method in my previous post that gets the index via the QSqlQueryModel member I added to my custom delegate class, as I said, it works, but is there another not-so-obvious method that doesn't require a hammer ?