MCPcopy Create free account
hub / github.com/PyQt5/PyQt / initData

Method initData

QTableView/CopyContent.py:96–100  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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
103if __name__ == "__main__":

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected