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

2010-06-17 Thread Vadym Honcharuk
thanks a lot, Mark! I made the following things: from MainForm self.connect(self.ui.srcTable.selectionModel(), QtCore.SIGNAL("currentRowChanged(QModelIndex, QModelIndex)"), self.frmTableFilter) further: def frmTableFilter(self): index = self.ui.srcTable.currentIndex() if index

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

2010-06-17 Thread Mark Summerfield
On 2010-06-14, Vadym Honcharuk wrote: > thank you, Mark! > > one more question about applying filter in the context of > QSortFilterProxyModel: [snip] > > Question what method is analog of SQL setFilter() in context of > QSortFilterProxyModel? There are two approaches you can take with QSortFilt

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

2010-06-13 Thread Vadym Honcharuk
thank you, Mark! one more question about applying filter in the context of QSortFilterProxyModel: in MainForm() i created connection self.connect(self.ui.TABLE#1.selectionModel(), QtCore.SIGNAL("currentRowChanged(QModelIndex, QModelIndex)"), self.TABLE#2Filter), further (in simple way) def

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

2010-06-05 Thread Mark Summerfield
On 2010-06-05, Vadym Honcharuk wrote: > works excellent! Thanks a lot! :-D > 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? Yes, only *one* QDataStream per file! If you wante

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

2010-06-05 Thread Vadym Honcharuk
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 : > On 2010-06-05, Mark Summerfield wrote: >> On 2

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

2010-06-05 Thread Mark Summerfield
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: >

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

2010-06-04 Thread Mark Summerfield
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()

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

2010-06-04 Thread Vadym Honcharuk
Thanks a lot, Mark! thereis problem rather how to read data from file than write it in using QDataStream. As all tree tables may contain different and unknown number of rows I find difficults to iterate row when read data from stream. For example: write data: stream = QtCore.QDataS

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

2010-05-20 Thread Mark Summerfield
On 2010-05-20, Vadym Honcharuk wrote: > 2010/5/9 Mark Summerfield : [snip] > Thank you, Mark! > > One more question in this issue is how to save data from these three > tables with different models in one file by QDataStream module. The > point of problem in that save method calling from their mo

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

2010-05-19 Thread Vadym Honcharuk
2010/5/9 Mark Summerfield : > On 2010-05-08, Vadym Honcharuk wrote: >> Hi to All, >> >> I need three tables with master-detail relationship one to other. I >> made QTableView Model from Mark book and three vertical frame on one >> page for it. How possible connect these tables with master-detail >

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

2010-05-08 Thread Mark Summerfield
On 2010-05-08, Vadym Honcharuk wrote: > Hi to All, > > I need three tables with master-detail relationship one to other. I > made QTableView Model from Mark book and three vertical frame on one > page for it. How possible connect these tables with master-detail > relationship? Examples are really

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

2010-05-08 Thread Vadym Honcharuk
Hi to All, I need three tables with master-detail relationship one to other. I made QTableView Model from Mark book and three vertical frame on one page for it. How possible connect these tables with master-detail relationship? Examples are really welcome if possible... thanks a lot! with best