Andreas -<div><br></div><div>You actually provided me the answer.  Was not aware of proxy models but once I added the QSortFilterProxyModel (as shown in the pyqt example) everything now works.</div><div><br></div><div>Thanks again.</div>
<div><br></div><div>Marc</div><div><br><div class="gmail_quote">On Mon, May 30, 2011 at 1:54 PM, Andreas Pakulat <span dir="ltr"><<a href="mailto:apaku@gmx.de">apaku@gmx.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 29.05.11 15:06:17, Marc Rossi wrote:<br>
> Thanks for the reply.  There must be some core concept of Qt/Model-View<br>
> programming I am just missing.<br>
><br>
> Makes sense that I can store the data keyed by symbol in the model and<br>
> update it that way, but I thought I had to emit a dataChanged signal for the<br>
> view to update as shown below:<br>
><br>
>     self.emit(SIGNAL("dataChanged(QModelIndex,QModelIndex)"),<br>
> self.index(index.row(), COL1), self.index(index.row(), COL5))<br>
><br>
> Doing it this way required me to have the index for the column I wanted<br>
> refreshed.   I see there is a 'match()' function in the QAbstractItemModel<br>
> class but when I tried that (calling match for every update) things were<br>
> ridiculously slow.<br>
<br>
</div>Hmm, I don't have that much experience with sorting without a proxy<br>
model between the real one and the view, but if the model does not get<br>
notified about changes in its indexes then that sounds like a there's a<br>
bug somewhere.<br>
<div><div></div><div class="h5"><br>
Andreas<br>
<br>
_______________________________________________<br>
PyQt mailing list    <a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br>
<a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br>
</div></div></blockquote></div><br></div>