[PyQt] Implementation of the editabletreemodel example

cyril Romain c.romain at laposte.net
Sat Mar 28 10:48:41 GMT 2009


Hi,

Here is the PyQt implementation of the editabletreemodel itemviews example.

The code was written from the C++ implementation, with space only inside.
Feel free to make any necessary changes such as adjusting the header 
(copied from simpletreemodel.py example) or removing ui_mainwindow.py 
and editabletreemodel_rc.py generated files provided for convenience.

Feel also free to add that example in the next PyQt release.

Best regards,

  Cyril

PS: if you really want the exactly the same behaviour than the C++ 
implementation, you can apply the provided patch. I think it is more 
consistent to insert "[No data]" whatever the  insertion case though.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: editabletreemodel.tar.gz
Type: application/gzip
Size: 7443 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20090328/781db5e3/editabletreemodel.tar.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: exactly_same_behaviour.patch
Type: text/x-patch
Size: 898 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20090328/781db5e3/exactly_same_behaviour.bin


More information about the PyQt mailing list