Relative Content

Tag Archive for pyside2model-viewqstandarditemmodel

Use QCheckbox to change data and view for a QStandardItemModel

I want to have a QChecbox that when checked it will make the model fetch some type of data and show it, and when is not to fetch some other kind of data.
The problem that I find is that I am not able to update the model view. I am printing the data and it seems to be fetching the correct data as I press the checkbox, but the view stays the same and I can not figure out why.