(self)
| 94 | i, QStandardItem("表头" + str(i + 1))) |
| 95 | |
| 96 | def initData(self): |
| 97 | for row in range(100): |
| 98 | for col in range(5): |
| 99 | self.myModel.setItem( |
| 100 | row, col, QStandardItem("row: {row},col: {col}".format(row=row + 1, col=col + 1))) |
| 101 | |
| 102 | |
| 103 | if __name__ == "__main__": |