Hey Guys, I'm trying to write a simple QItemDelegate subclass but am having some problems, and was wondering if anyone might be able to help me out and shed some light on what I could be doing wrong? For the most part it works as expected, until it comes to signals, specifically the closeEditor signal. My class is essentially this but with a couple of extra methods:
class delegate( QtGui.QItemDelegate ): def __init__(self, parent = None): QtGui.QItemDelegate.__init__(self, parent) def createEditor( self, parent, option, index ): editor = QtGui.QItemDelegate.createEditor(self, parent, option, index) QtCore.QObject.connect(editor, QtCore.SIGNAL("editingFinished ()"), self.endEditor) def endEditor( self ): print "closing editor" editor = self.sender() self.emit(QtCore.SIGNAL("closeEditor (QWidget *,QAbstractItemDelegate::EndEditHint = QAbstractItemDelegate.NoHint)"), editor) When its time to call the endEditor method it gets called but the editor remains open, the only way I'm able to get it to close it is by directly calling 'editor.close()'. Any comments/suggestions would be greatly appreciated. thanks alot babak -- View this message in context: http://www.nabble.com/QItemDelegate-Subclass-tp17237222p17237222.html Sent from the PyQt mailing list archive at Nabble.com. _______________________________________________ PyQt mailing list PyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt