[PyQt] how know when the number of rows change in QTableWidget ?

Rodrigo rodrigohaas at gmail.com
Thu Jan 27 03:50:37 GMT 2011


Thanks Paul!


Rodrigo

Em 26-01-2011 23:25, Paul Du Bois escreveu:

> widget.model() will emit rowsInserted/Moved/Removed signals.  You could
> try connecting
> to those.  See QAbstractItemModel for details.
>
> You may also need to connect to modelReset because not all modifications
> to the data may be expressed
> in terms of row additions/removals.
>
> If any operations (say a drag/drop) happen to be implemented internally
> as a remove followed by an insert
> you may find yourself getting a lot of uninteresting signals.
>
> p


More information about the PyQt mailing list