Hello,
I need to visualize data from a database. Currently, I am using QTableView and QSqlTableModel to do this, but I have an issue with it.
Some background... I am working on an application that receives constant streams of data from multiple sources. This data is parsed, recorded in a database, and then displayed as records in a table for an operator to examine. Individual records must be selectable for further scrutinizing.
There are two problems I've encountered using QTableView/QSqlTableModel. Whenever new data is added (which is pretty much constantly -- let's say 50 times per second):
1) The selection is automatically cleared/invalidated.
2) And attempt to scrolling in the view fails -- the view scrolls a bit then snaps back at the addition of new data.
I am not sure how to solve this issue, and was wondering if anyone had any advice?
Bookmarks