Skip to content Skip to sidebar Skip to footer

BeginResetModel() - Doesn't Work

When script is running I am changing content of the file. On centos I have got error like that: AttributeError: 'list' object has no attribute 'beginResetModel' On Ubuntu I don

Solution 1:

You are not changing the data when you reset the model:

self.stockdata = self.stockdata

This line needs to set self.stockdata to the updated value. Presumably you want to read in the changes from the file you are watching.


Post a Comment for "BeginResetModel() - Doesn't Work"