QJsonModel icon indicating copy to clipboard operation
QJsonModel copied to clipboard

Request: model->reset

Open diegoiast opened this issue 8 months ago • 0 comments

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.

diegoiast avatar Apr 25 '25 08:04 diegoiast