Unsolved Should I use a model / view for this master / detail interface?
-
I have a master / detail stored in two arrays and I want to display the data in two tables on the interface. I am not connecting the data to a SQL database, although it is stored in a binary file. Should I use QTableView for both the master and detail, or will there be a problem maintaining the detail / model?
-
Hi,
Where exactly are these data stored ? How are you loading them ?
-
@SGaist They are on my disk in a binary file. I'm loading them with QFile open.
-
How are you reading them ?
-
@SGaist Into some regular C++ arrays with QFile and QDataStream.
-
You can implement a custom QAbstractTableModel on top of your data and you should be good.