You can
- use the
QListWidget.itemClicked
signal. - Connect it to a function, that takes an
QListWidgetItem
as argument. - Identify the item and act accordingly
Example
...
self.myListWidget.itemClicked.connect(self.showDataInTable)
....
def showDataInTable(item):
item_name = str(item.text()) # getting item name as python string
... # show data or do what ever you like
dataToShow = myDataDict[item_name]