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] Error when converting QVariant back to Python object

2010-06-04 Thread Baz Walter
On 03/06/10 16:01, Phil Thompson wrote: On Sat, 29 May 2010 19:46:58 +0100, Baz Walter wrote: looks like i spoke too soon: i now get segfaults when trying to emit signals that send char *. the particular signal that caused the crash was "propertyChanged(const char *prop, const char *val)" in Q

[PyQt] passing a list by reference to C++ and back....

2010-06-04 Thread Blaine Bell
Hi, I have a function that I want to wrap in Python that has a "std::vector<> &"argument. Is it possible to set the changes of the c++ object back to the python object? I have mapped this std::vector<> type to a %MappedType, so I can implement %ConvertFromTypeCode and %ConvertToTypeCode. I