def setData(self, column, value, role=Qt.EditRole): if self.scene() is None : return False self.scene().setData(self.getIndex(column), QtCore.QVariant(value), role)
def data(self, column, role=Qt.DisplayRole): if self.scene() is None : return QtCore.QVariant() return self.scene().data(self.getIndex(column), role)