How to get item selected from QListView in PyQt
问题 I'm new to PyQt. So I'm trying to get selected item from QListView, I'm able to get selected items's index, but I'm not able to get the value of the index, can please someone help me. Here is the code : import sys import os from PyQt4 import QtCore, QtGui from PyQt4.QtCore import * from PyQt4.QtGui import * class asset(QtGui.QDialog): def __init__(self,parent=None): super(asset, self).__init__(parent) self.assetList = QtGui.QListView(self) self.assetList.clicked.connect(self.on_treeView