Qt4.3.1

I am using a subclass of QItemDelegate to provide a custom editor for a tree view. When I create a Qt editor such as QLineEdit, etc it works fine. But when I create a custom dialog as the editor, when I close the dialog via the done( 0 ) call, the dialog goes away but my new data doesn't show in the tree. Only when I move off of the currently selected item does it show up.

Does this mean that my setModelData method isn't being called until after I move off of the item in question? If so, what signals should I emit in my dialog to tell the framework that I'm finished and I have new data so that setModelData is called in a timely fashion?

Any insight would be appreciated.

-Mic