[Qt-interest] Blocking signals from / to MVC components.

Stephen Kelly steveire at gmail.com
Wed Sep 21 14:59:51 CEST 2011


MARTIN Pierre wrote:

>> beginResetModel/endResetModel is newer than reset(). No one saw the need
>> to port it.
> Understood.

It might not have been clear from my email, but even in the current 
implementation of the model in Qt (using reset()) it might work to persist 
and restore the selection. Or it might not. You'd have to try it.

Just storing the indexes and re-selecting them might not be good enough 
either. You might need to persist some unique id, and then look for that id 
to restore the selection. It partly depends on how the QSql models are 
implemented. You'd have to try it.




More information about the Qt-interest-old mailing list