RE: [PyQt] QSqlQueryModel works but QSqlTableModel doesn't work

2008-03-05 Thread Ivan Coronado
EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En nombre de Simone Enviado el: martes, 04 de marzo de 2008 18:46 Para: pyqt@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. Usi

Re: [PyQt] QSqlQueryModel works but QSqlTableModel doesn't work

2008-03-04 Thread Simone
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

RE: [PyQt] QSqlQueryModel works but QSqlTableModel doesn't work

2008-03-04 Thread Ivan Coronado
@riverbankcomputing.com Asunto: Re: [PyQt] QSqlQueryModel works but QSqlTableModel doesn't work Ivan Coronado ha scritto: > self.tb= QtSql.QSqlTableModel() > self.tb.setTable("condicionesref") #if I change the table works ok > self.tb.setEditStrategy(QtSql.QSqlT

Re: [PyQt] QSqlQueryModel works but QSqlTableModel doesn't work

2008-03-04 Thread Simone
Ivan Coronado ha scritto: self.tb= QtSql.QSqlTableModel() self.tb.setTable("condicionesref") #if I change the table works ok self.tb.setEditStrategy(QtSql.QSqlTableModel.OnManualSubmit) self.tb.select() #returns False print self.tb.rowCount() #returns 0

[PyQt] QSqlQueryModel works but QSqlTableModel doesn't work

2008-03-04 Thread Ivan Coronado
Hello, I'm trying to load one table in a QSqlTableModel. The columns loads with no problem, but the data doesn't load. When I use the select() method it returns False. The same table load Ok with QSqlQueryModel. I haven't problems with the others tables.