[PyQt] How to update an QAbstactTableModel

despen at verizon.net despen at verizon.net
Sat Dec 5 20:35:39 GMT 2009


I'm new to pyqt4, sorry if this is a beginners question.

I've written a stock portfolio tracker in pyqt4.  The main window which
is a QAbstractTableModel has an Update button.  When I click it, the
program gets new stock prices and updates the data in the table.

My problem is that the data displayed in the table doesn't update until
the window loses and regains focus.  I've tried calling a method that
emits a "DataChanged" signal and I've also tried "LayoutChanged".
Neither appears to do the job.

I can post what I have if requested...


More information about the PyQt mailing list