def listedensecilensatirlar(self):
adada = self.ui.tableWidget.selectionModel().selectedRows()
print adada
I have chosen the line in each row I want to achieve but the model did not read the index. I choose what I want to get as text data contained in rows.
This is a picture of my problem: i.stack.imgur.com/APFPl.png
If you want to get the text from the items in the selected rows, you could try this:
But note that selectedRows only get rows where all items are selected.