If I construct a QStandardItem like so:
item = QtGui.QStandardItem('Item Name')
When this item is added to a QStandardItemModel model and is viewed in a QTreeView I get a cell that says Item Name. However, when I construct one like:
item = QtGui.QStandardItem()
item.setData(123)
I get an an empty cell, but I can still recall the data by calling:
print(item.data())
and I will get the number 123. How can I get the number to actually display in the cell?