maybe
but it seemed to me that QSqlTableModel would not use the indexes as hoped for.![]()
i just had some problemes with the models that were there and thought it would be easy to create my own model. well it has once again taken me days for what are not more than 300 lines.. mainly because i came across problems like this on different occasions. also when i was trying to build some sql-statements using information from the Fields i would fail because of invalid fields coming from perfectly legal queries that simply returned some empty fields. For some time i had the theorie that QSqlRecord would have invalid fields wherever it encountered empty columns.
But then i realized that at the end of setTable() the tableData[row].count() was still > 0 only when i tried to access the record which i stored in tableData again later would its count() be 0.
how can this be?
Bookmarks