[PyQt] QSqlQueryModel works but QSqlTableModel doesn't work

Ivan Coronado icoronado at epcge.com
Wed Mar 5 08:03:56 GMT 2008


I don't think that are the permissions, anyway 	I tried to log in as
root and I still have the same problem. I'm using mysql and connecting
to it trought QODBC. All the other tables works well! I'm
desperate!!!!!!!!!

Thanks again for the help

 

-----Mensaje original-----
De: pyqt-bounces at riverbankcomputing.com
[mailto:pyqt-bounces at riverbankcomputing.com] En nombre de Simone
Enviado el: martes, 04 de marzo de 2008 18:46
Para: pyqt at riverbankcomputing.com
Asunto: Re: [PyQt] QSqlQueryModel works but QSqlTableModel doesn't work

Ivan Coronado ha scritto:
> Ja ja ja, yes, now the table has 15 records. Using QSqlQueryModel I
can see the records. Another rare thing, If I use QSqlTableModel I only
see the column names, but If I click in any header of the table, all the
column names disappear.

It seems something related to the status of table. Do you have the
permission to read the table? Which database are you using?

Simone

Chiacchiera con i tuoi amici in tempo reale! 
 http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com 

_______________________________________________
PyQt mailing list    PyQt at riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt



More information about the PyQt mailing list