Re: [PyQt] how to close editor in QTreeView

2010-10-13 Thread danny
Either try using QAbstractItemView.closePersistentEditor() or, if you need custom editors, create your own with a QStyledItemDelegate subclass, where you have full control (including the widget, that you're missing). Pete Thanks for you response. What you suggested put me on the

[PyQt] how to close editor in QTreeView

2010-10-08 Thread Danny
Howdy, In my application, I create a tree by drag and drop. When I drop an item, I immediately open the item editor delegate so the user can type the item text. I am implementing undo/redo, and both the item creation and text editing go into a macro. All is good. The problem is that if I have

Re: [PyQt] how to close editor in QTreeView

2010-10-08 Thread Hans-Peter Jansen
On Friday 08 October 2010, 18:55:11 Danny wrote: Howdy, In my application, I create a tree by drag and drop. When I drop an item, I immediately open the item editor delegate so the user can type the item text. I am implementing undo/redo, and both the item creation and text editing go into a