[PyQt] QTableView selected item signals via QItemSelectionModel

Andreas Pakulat apaku at gmx.de
Wed Nov 19 21:29:17 GMT 2008


On 19.11.08 12:56:59, Scott Frankel wrote:
>
> 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.

Well, quite simple: The signal has two parameters, so you're connect simply
didn't work. You always need to use the complete signature of the signal.

Andreas

-- 
Chicken Little was right.


More information about the PyQt mailing list