[PyQt] QTableView and clicked signal

Pierre Chifflier p.chifflier at inl.fr
Mon Jul 28 09:15:27 BST 2008


Hi,

I am trying to display data using a QTableView, and use the clicked and
doubleClicked signals.

I tried connecting the signals using several variants from:
QtCore.QObject.connect(self.tableView, QtCore.SIGNAL("clicked(const QModelIndex&"), self._onClick)
QtCore.QObject.connect(self.tableView, QtCore.SIGNAL("clicked(QModelIndex"), self._onClick)

But it seems that the signals are never sent when I click on an item.

Is it possible to use these signals with a QTableView ? I'm not sure if
they are intercepted by another widget (the item, or the table view
itself) and, unfortunately, it seems there is no easy way to trace
signals.
Any idea ?

I have attached a very small test script.

Thanks for your help,
Pierre

-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-itemview.py
Type: text/x-python
Size: 1297 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20080728/5d0ea56e/test-itemview.py


More information about the PyQt mailing list