self.listOfSongs = QtWidgets.QListView(self.centralwidget)
self.listOfSongs.setGeometry(QtCore.QRect(80, 160, 191, 192))
self.listOfSongs.setObjectName("listOfSongs")
self.model = QtGui.QStandardItemModel()
self.listOfSongs.setModel(self.model)
self.updateList()
def updateList(self):
self.model.clear()
for x in self.table:
item = QtGui.QStandardItem(x)
self.model.appendRow(item)
I hope someone can tell me how to get the item or the index of the item that I choose by selecting or click on? Using lib pyQT5 in python

