I found the answer :)
def connectSlots(self):
QtCore.QObject.connect(self.ui.tableView, QtCore.SIGNAL("clicked(QModelIndex)"), self.cellClicked)
def cellClicked( self, qmodelindex ):
self.item = qmodelindex.data(QtCore.Qt.DisplayRole).toString()
print self.item
this will allow you to get and print the elements that were clicked in qtableview just complicated the search for examples
thanks Stephen ..
unice source
share