QJsonModel
QJsonModel copied to clipboard
Request: model->reset
I have a small use case, in which I am passing an empty string to the model. What happens is that the model complains that the json cannot be parsed... which make s a lot of noise on my setup (how can I distinguish this and "the json is not valid"?).
I would like to have a 'clear the model data' method, so I can detect this on my side, and instead of model->loadJson() I would call model->clear() and reduce debug output on my side.