I\'m writing a Twitter client. I implemented TweetItem and TweetModel. The issue is that there is a role in TweetItem called ori
undefined because, because your TweetItem.original is in fact None.I'm not sure what you are trying to accomplish, but I want to clear some possible misunderstandings. QAbstractItemModel is a model class too, it's somewhat strange to see
def data(self, index, role):
return self.tweets[index.row()].data(role)
there.