Exemplo n.º 1
0
    def setData(self, index, data, role=None):
        row, column = index.row(), index.column()
        cell = Cell.get(row, column)
        if not cell:
            if data:
                cell = Cell(row, column)
                cell.data = data
                self.headerDataChanged.emit(Qt.Horizontal, column,
                                            Qt.DisplayRole)
                ColList.List.reset()
        else:
            cell.data = data

        return True