I have a QStandardItemModel
in PySide, and want to strikeout text on certain rows (it is a to do list application and when a task is done, I want to strike through the text). Given a QStandardItem
that displays fine, based on the documentation I try to strikethrough the text with:
QStandardItem.setFont(QtGui.QFont.setStrikeOut(True))
But the text is unchanged, and I get error:
TypeError: descriptor 'setStrikeOut' requires a 'PySide.QtGui.QFont' object but received a 'bool'