Indeed the model/view/delegate framework is very flexible and remains<br>snappy, even when displaying POPO's. The advantage of using an orm is that <br>you can display properties of your objects, along with attributes.<br>
<br>sqlalchemy / elixir is a very flexible framework that makes using complex<br>queries easier (not easy).<br><br>you could use the Camelot framework to avoid writing boilerplate code to<br>map you python objects to tables. some screenshots are available at :<br>
<a href="http://www.conceptive.be/projects/camelot/wiki/ScreenShots" target="_blank">http://www.conceptive.be/projects/camelot/wiki/ScreenShots</a><br><br><div class="gmail_quote">2009/3/19 Damien Elmes <span dir="ltr"><<a href="mailto:resolve@ichi2.net">resolve@ichi2.net</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">>> So an alternative would be to reimplement the Qsql classes using<br>
>> based on the Python DBAPI protocol, but maybe the cost/benefit ratio<br>
>> for that is too high?<br>
> I'd say far to high. Qt has it own philosophy with databases, if you want<br>
> snappy grids, and automatic updates and all that stuff, i'd suggest to stick<br>
> to PyQt4 cplusplus-ish way of dealing with data. It's not pythoninc but it<br>
> works quite well. I must admit ORM's are much more nice to work with, but SQL<br>
> is not so bad.<br>
<br>
</div>You don't need to use Qt's SQL support for snappy grids and automatic<br>
updates. Qt's model/view architecture is quite flexible and I achieve<br>
very good performance with sqlalchemy (bypassing the ORM) and a custom<br>
table model. It wasn't hard to write, either - but it is more work<br>
than using Qt's premade SQL model.<br>
<div><div></div><div class="h5">_______________________________________________<br>
PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br>
<a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br>
</div></div></blockquote></div><br>