Re: Simple model with QListView and QTableView
Do you have more data to display other than city, longitude, and latitude? If not, I'd just use a QTableView.
If you do, you could use two widgets, a QTreeView on the left with City as the parent and each longitude/latitude as a child of the city. When you click on a specific longitude/lattitude child, then you could display the details in the widget on the right. The widget you choose would depend on the type/amount of data you need to display for each longitude/latitude, etc.
Hope that makes sense.
I write the best type of code possible, code that I want to write, not code that someone tells me to write!
Bookmarks