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

Vadym Honcharuk intereco at gmail.com
Sat Jun 5 19:50:23 BST 2010


works excellent! Thanks  a lot!

one question almost on this issue: only one QDataStream may exist per
one file? May be one more approach is separate QDataStream for each
tables and in one file?

with best regards,
-vadym

2010/6/5 Mark Summerfield <list at qtrac.plus.com>:
> 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