<div dir="ltr"><p>Question 1.</p><p>I&#39;ve created a delegate for a TableView that works real well except for one thing. &nbsp;I emit the closeEditor signal with this code:<br>&nbsp; self.emit(SIGNAL(&quot;closeEditor(QWidget*, QAbstractItemDelegate::EndEditHint)&quot;), editor, QItemDelegate.EditNextItem)</p>
<p>Which works cool, except that the item to the right of the current item is opened. I&#39;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(&quot;The file is read only&quot;) 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>