How to get the all column data for the selected row of a qtableView. For a single index like first column I can get the data. But I want all datas in an array. How to append those selected data into an array!
def selectRow(self):
index = self.tableView.selectionModel().selectedIndexes()[0]
id = int(self.tableView_AccInfo.model().data(index))
print ("index : " + str(id))
For example:
header --> a b c d e f
row0 --> 1 2 3 4 5 6
I want, data[1,2,3,4,5,6]