[PyQt] QTableView selected item signals via QItemSelectionModel

Scott Frankel frankel at circlesfx.com
Wed Nov 19 20:56:59 GMT 2008


Hello,

What's the proper way to identify which row of a QTableView instance a  
user may have selected?

Pouring through the docs, and web searches, I think I've gotten close  
by listening for signals from a QItemSelectionModel instance.  I'm  
still missing something though, as my implementation isn't firing  
"selectionChanged()" signals.

Thanks in advance for suggestions!  Example python script is attached.
Scott



-------------- next part --------------
A non-text attachment was scrubbed...
Name: selectionModel.py
Type: text/x-python-script
Size: 4741 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20081119/8fa3a770/selectionModel.bin
-------------- next part --------------







More information about the PyQt mailing list