Hey everyone! I am looking for some advice on organizing my next project.
Basically, I want an app that stores train schedules (involving ~20,000 trains) in a model and displays it in widgets which are subclasses of QTreeView, QTableView, and QGraphicsView.
(1) The tree widget would display departure cities at the top level, arrival cities on the next level, and finally the corresponding trains.
Like this:
- Paris
- Athens
- train A
- train B
- train C
(2) The table widget would display arrival/departure times and other data for the selected trains. Train selection can be facilitated by adding check boxes to the above tree widget.
(3) Graphics widget would visualize the route of the selected trains on a map.
Would this be possible to implement using Qt's model/view architecture? If so, what model should I choose? Is it possible (without too much hacking) to make a proxy model between QTreeView widget and a table model? If not, are the any alternative approaches?
I would really appreciate any suggestions! Thanks!
Bookmarks