leknarf
4th September 2009, 15:14
Hello, this is my first post to QtCentre.
What's the proper handling for QSqlTableModel::setQuery()? My attempts return all rows extant in the db table. Yet the query (tested on the cmd-line) should have returned only a few rows.
lastError() yields nothing.
How does one get text from a model object's query() function?
I have a situation where I need more control over the rows displayed from a QSqlRelationTableModel object than can be achieved with a "where" clause filter. The documentation states that setQuery() is normally not called directly on a model. Am I finding out why now? ;)
Thanks in advance!
Scott
What's the proper handling for QSqlTableModel::setQuery()? My attempts return all rows extant in the db table. Yet the query (tested on the cmd-line) should have returned only a few rows.
lastError() yields nothing.
How does one get text from a model object's query() function?
I have a situation where I need more control over the rows displayed from a QSqlRelationTableModel object than can be achieved with a "where" clause filter. The documentation states that setQuery() is normally not called directly on a model. Am I finding out why now? ;)
Thanks in advance!
Scott