how can i get or print clicked item in a tableview?
here is sample code
def connectSlots(self):
# this does not work ..
QtCore.QObject.connect(self.tableView, QtCore.SIGNAL("clicked(const QModelIndex&"), self._onClick)
QtCore.QObject.connect(self.tableView, QtCore.SIGNAL("clicked(QModelIndex"), self._onClick)
def _onClick(self, *args):
print "_onClick", args
i found the answer 🙂
this will get and print the items that was clicked in the qtableview
just got hard time searching for examples
thx Stephen ..