validate loaded data in QTableView
<p>I got a MVC sytle PyQT UI program, and already got delegates binded to certain column for whatever date or regex validation, when insert manually, everything goes fine, the limits holds on </p>

<pre><code>class IPDelegate(QStyledItemDelegate):
    def createEditor(self, parent, option, index):
        line_edit.setValidator(regex_ip)
</code></pre>

<p>but for loaded data, which I insert by </p>

<pre><code>self.model.appendColumn(
    [
        QStandardItem(column_value) 
        for column_value in loaded_line
])
</code></pre>

<p>such validation only happens when I manually double click inside some table cellï¼are their any way to check its value automatically? my idea is to loop get focus of each cell, and simulate the 'press enter' operation, to trigger the check, but did not find any similar APIs</p>

<p>any suggestion? 
Thanks, Jack</p>

<p>solved by myself, did not use the misery mvc module, turn all data validation to a set of regex, loop over at both set delegate and raw regex validation</p>

python delegates pyqt tableview