Re: [PyQt] Maintaining index after sort

2011-05-31 Thread Marc Rossi
Andreas - 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. Thanks again. Marc On Mon, May 30, 2011 at 1:54 PM, Andreas Pakulat ap...@gmx.de wrote: On 29.05.11 15:06:17, Marc

Re: [PyQt] Maintaining index after sort

2011-05-30 Thread Andreas Pakulat
On 29.05.11 15:06:17, Marc Rossi wrote: Thanks for the reply. There must be some core concept of Qt/Model-View programming I am just missing. Makes sense that I can store the data keyed by symbol in the model and update it that way, but I thought I had to emit a dataChanged signal for the

Re: [PyQt] Maintaining index after sort

2011-05-29 Thread Andreas Pakulat
On 28.05.11 21:58:36, Marc Rossi wrote: Hi all. Hopefully this is the correct place. Google searches etc, came up empty although I have to think this is a common question. I have a Model-View app using the QAbstractTableModel as the base class for my model. As I receive data across the

Re: [PyQt] Maintaining index after sort

2011-05-29 Thread Marc Rossi
Thanks for the reply. There must be some core concept of Qt/Model-View programming I am just missing. Makes sense that I can store the data keyed by symbol in the model and update it that way, but I thought I had to emit a dataChanged signal for the view to update as shown below:

[PyQt] Maintaining index after sort

2011-05-28 Thread Marc Rossi
Hi all. Hopefully this is the correct place. Google searches etc, came up empty although I have to think this is a common question. I have a Model-View app using the QAbstractTableModel as the base class for my model. As I receive data across the tcp pipe (using PyZMQ) I check if this is a new