[PyQt] Master-detail relationship with plain QTableView tables (no SQL database)

Mark Summerfield list at qtrac.plus.com
Sat Jun 5 08:11:47 BST 2010


On 2010-06-05, Mark Summerfield wrote:
> On 2010-06-05, Vadym Honcharuk wrote:
> > Thanks a lot, Mark!
> 
> Hi Vadym,
> 
> One approach that you could take is to write the count of how many
> things you're going to write and then write the things. For example,
> you could try something like this:
> 
> write data:
> 
>     srcCount = self.srcTableModel.count()

Ooops, I meant .rowCount() not .count() throughout of course!

[snip]


-- 
Mark Summerfield, Qtrac Ltd, www.qtrac.eu
    C++, Python, Qt, PyQt - training and consultancy
        "Programming in Python 3 (Second Edition)" - ISBN 0321680561


More information about the PyQt mailing list