baray98
17th July 2009, 17:24
background:
I am using QOBDC driver on my windows application and it is connected on MS SQL database.
My woe:
I use QTableView with QSqlTableModel to display the result of my query and I want to display the number of records returned from my query. When i use QSqlQuery::size() it will only give me -1 and if I use QSqlTableModel::rowCount() it will only give the rows in model's cache.
It seems like my driver doesn't support QSqlDriver::QuerySize, Is there any other way?
is there a QOBDC driver thats support query size?
baray98
I am using QOBDC driver on my windows application and it is connected on MS SQL database.
My woe:
I use QTableView with QSqlTableModel to display the result of my query and I want to display the number of records returned from my query. When i use QSqlQuery::size() it will only give me -1 and if I use QSqlTableModel::rowCount() it will only give the rows in model's cache.
It seems like my driver doesn't support QSqlDriver::QuerySize, Is there any other way?
is there a QOBDC driver thats support query size?
baray98