How to get a current Item's info from QtGui.QListWidget?
问题 Created a QtGui.QListWidget list widget: myListWidget = QtGui.QListWidget() Populated this ListWidget with QListWidgetItem list items: for word in ['cat', 'dog', 'bird']: list_item = QtGui.QListWidgetItem(word, myListWidget) Now connect a function on list_item's left click: def print_info(): print myListWidget.currentItem().text() myListWidget.currentItemChanged.connect(print_info) As you see from my code all I am getting on a left click is a list_item's label name. But aside from a label