[PyQt] TableModel

2009-02-10 Thread Brian Makin
I need to create a table with string and number fields. I'm having a bit of problem getting this to work. What is the correct way to do this? It doesn't look like TableModel handles numbers so do I need to subclass abstract table model et al? Are there any handy examples of this

[PyQt] QtSql issue

2009-01-07 Thread Brian Makin
I've just installed pyqt on an ubuntu box and many of the examples work fine. When I try to run the sql examples I get the following error. python -c from PyQt4 import QtSql Traceback (most recent call last): File string, line 1, in module ImportError: cannot import name QtSql using QtCore