<div dir="ltr"><p>Question 1.</p><p>I've created a delegate for a TableView that works real well except for one thing. I emit the closeEditor signal with this code:<br> self.emit(SIGNAL("closeEditor(QWidget*, QAbstractItemDelegate::EndEditHint)"), editor, QItemDelegate.EditNextItem)</p>
<p>Which works cool, except that the item to the right of the current item is opened. I'd like it to be the one below. How do I accomplish this?</p><p></p><p>Question 2.<br></p><p>The other thing is that files are written to when data is modified in the model. A problem arises when I show a QMessageBox("The file is read only") i.e The next index is opened for editing. This is bad, when the messagebox is opened, THAT index is closed and the app segfaults when trying to show another messagebox.</p>
<p>So my question is, how can I stop the next index from being opened for editing in the first place?</p></div>