I guess we could just do: id = index.internalId() if id > len(self.inventory_data): QtCore.QVariant()
item_data = self.inventory_data[id]
But why did this happen?
I guess we could just do: inventory_ data):
QtCore. QVariant( )
id = index.internalId()
if id > len(self.
item_data = self.inventory_ data[id]
But why did this happen?