Answer the question
In order to leave comments, you need to log in
How to enter data from a json file into a QTableView table?
There is a trip.json file for example.
{
"name": "Hawai",
"days": 25
}
Answer the question
In order to leave comments, you need to log in
1) create a suitable model (for example, inherit from QAbstractTableModel );
2) load data from json;
3) implement the model from clause 1 so that it returns the value of a specific property depending on the requested column;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question